Skip to main content

All Questions

5 votes
1 answer
12k views

Better implementation of Gaussian Elimination

I made an algorithm in C# that solves any system of linear equations using the Gaussian elimination. There are 2 text boxes in the program for input and output. Input is in the format of the ...
osos95's user avatar
  • 53
23 votes
8 answers
6k views

Optimize custom double.parse()

In my company's code, they use double.tryParse() which is quite good but sets too much security for our needs. As we sometimes have to parse a few billion strings, ...
Thomas Ayoub's user avatar
4 votes
3 answers
1k views

Implementation of arbitrary-precision integer addition

Implementation: ...
Rezo Megrelidze's user avatar
4 votes
2 answers
2k views

Unsafe Stack in C#

I was interested to see if it was possible to implement an unsafe stack in C#, so I wrote this: ...
Rezo Megrelidze's user avatar
4 votes
2 answers
2k views

Implementing faster StringBuilder that only works with ASCII strings

I wrote a StringBuilder that works only with ASCII strings. the current append performance is almost identical to BCL StringBuilder append performance. I want some tips on how to make it faster, and ...
Rezo Megrelidze's user avatar
22 votes
3 answers
3k views

Look 'ma, I can read code

I have put together a naive implementation of a VB6/VBA parser, and I'd like to see if the CR community sees the same things as I see can be improved with this code, before I start refactoring. I've ...
Mathieu Guindon's user avatar
12 votes
3 answers
81k views

Simple authentication in ASP.NET MVC 5

I am building an ASP.NET MVC 5 application and, for reasons which are irrelevant at this point, I am attempting to build my own means of authenticating users. I'm still very new to programming, ...
Jason's user avatar
  • 223
5 votes
1 answer
1k views

Lock-free producer/consumer implementation

I know of BlockingCollection in .net, but this is rather for my understanding of the pattern. Is this implementation correct ? Consumer ...
Omar Gamil's user avatar
1 vote
1 answer
3k views

My own implementation of Linq SelectMany extension method

What do you think of my own implementation of the extension method SelectMany? Motivating criticism is always welcome. ...
HerbalMart's user avatar
5 votes
4 answers
339 views

Is this a good implementation of a simple "Size" value type

I have created the value type below to represent the desired size for an image. The Size.Default is used in situations where the image is required in the size it ...
Greg B's user avatar
  • 171
4 votes
2 answers
287 views

Optimizing error-sorting method

I just made this sort method. It runs fine and the code looks okay in my eyes. Is is possible to optimize it so it runs faster? If it's \$O(n^3)\$ now, it would be interesting changing it to \$O(n^2)...
radbyx's user avatar
  • 143

15 30 50 per page
1 2 3 4
5