2 ms·
I think you are missing my point. So I'll restate it. sync.Pool does not help with GC issues compared to the JVM because the JVM also has object pools, furthe
by kasey_junk 11y ago
I think you are missing my point. So I'll restate it. sync.Pool does not help with GC issues compared to the JVM because the JVM also has object pools, further those object pools are actually better for the low latency case because the language does not force them to make a choice between dynamic type checks and specific use abstractions.
[edit] As pcwalton points out. My whole argument is actually null and void due to type erasure...doh.
- pcwalton 11y agoTo be fair, though, aren't generics on the JVM type-erased? So you're going to have a type assertion at the JIT level either way.