|
|
|
|
|
by kllrnohj
3031 days ago
|
|
Your fast path is still crippled by your slow paths' mess. It doesn't matter if you've isolated and optimized those paths in isolation, to the GC there's just Your Process and it's going to suspend Your Process whenever it wants for however long it needs regardless of what's currently happening. So if you're latency sensitive then all of your code needs to be aggressive at avoiding object creation. All of your code becomes part of "the fast path", even if it's in a different thread. Or you isolate your fast path in a different process or a non-GC'd runtime, the later being the approach taken here by Instagram. |
|