3 ms·
Certainly. But if object instantiation / garbage collection is your bottle neck, you should be using an object pool, anyways. You wouldn't put _every_ object
by warfangle 11y ago
Certainly.
But if object instantiation / garbage collection is your bottle neck, you should be using an object pool, anyways.
You wouldn't put _every_ object in an object pool, though - only those which obviously impact performance after identifying them as a bottleneck.
I'd hope you optimize for maintainability before you optimize for performance, otherwise you'll end up optimizing bottlenecks that don't exist.