2 ms·
This is being added as an optimization: Some of you probably looked at the String performance enhancement above and thought, “doesn’t the JVM do that for you?”
by rhencke 9y ago
This is being added as an optimization:
Some of you probably looked at the String performance enhancement above and thought, “doesn’t the JVM do that for you?” You’d be right. That’s a standard optimization in many languages. It’s an optimization we are adding to Pony. However, the basic pattern applies. Be aware of triggering extra allocations that you don’t need to. Your compiler and runtime can add many optimizations to avoid allocations, but it’s not going to do everything for you. You still need to understand your allocations. They’re called “your allocations” because in the end, you end up owning them and they end up owning your performance.
- infradig 9y agoGreat. Sorry for not reading further.