3 ms·
This is basically what I do. We don't have real time constraints, but we do have a limit to how long processing can take so we need to shave as many ms off how
by JustSomeNobody 8y ago
This is basically what I do. We don't have real time constraints, but we do have a limit to how long processing can take so we need to shave as many ms off how long our code executes as possible, so we pretty much use just the bare minimum features of the language and profile the crap out of everything.
One could argue that C# wasn't the best choice, but that was out of my hands.
- voltagex_ 8y agoAre you able to share any examples of functions where writing C# like that gave measurable benefits? I'm over in web-land and it's rare that C# itself is the bottleneck.
- scott00 8y agoOne example from my line of work that could conceivably translate to web-land would be parsing numbers. I wrote a version of double.Parse() with less features for an order of magnitude speedup. The program was doing data analysis on a bunch of CSV files, and just parsing the files was way slower than EBS I/O.