Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If your path is sensitive to 200us of latency you should probably optimize your application and tune your GC. Typically 200us for freeing all unreachable memory is not a big deal.


> If your path is sensitive to 200us of latency you should probably optimize your application and tune your GC.

okay, you've done this, three years later and it's the same thing again since you need to accomodate the new features. your users haven't upgraded their computers. what do you do ?


Run a profiler and optimize again.


Your original code is already optimized as much as is possible outside of the things mentioned by OP


Don't guess, measure.

Then just like C, writing a tiny set of functions in Assembly is always an option.


Keep in mind that I am referring to this:

> If your path is sensitive to 200us of latency you should probably optimize your application and tune your GC.

> Don't guess, measure.

yes, I am saying that the original code has already gone through a complete optimization process, everything is written in written in assembly, and you are at 970us on your 1ms time budget. (I'm not pulling those out of thin air, I was literally at a client yesterday with some real-time code with a 1ms deadline on a desktop OS and we have to cram as much things as possible in that millisecond)


Well in that case there is no way around upgrading the hardware, a 486 won't play a MP4 no matter how hand tuned the Assembly code is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: