All Questions
Tagged with c# reinventing-the-wheel
71
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 ...
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, ...
4
votes
3
answers
1k
views
Implementation of arbitrary-precision integer addition
Implementation:
...
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:
...
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 ...
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 ...
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, ...
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
...
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.
...
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 ...
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)...