|
|
|
|
|
by codesushi42
2563 days ago
|
|
In what regard? GC just amortizes the cost. But memory allocation doesn't fundamentally work any differently. In fact, it can be worse in Java because you have no control over whether an object lives on the stack instead of the heap. |
|
Make no mistake, rewriting is a huge expense, rarely embarked upon without readily demonstrated benefit. (Exceptions tend to be rewrites in Java for organizational / political reasons. But I digress.) Not spending the time, instead, adding features, and delaying new features until there is a place to put them, can dwarf the base cost of the rewrite. That rewrites are done frequently enough to be discussed tells you there are huge operational benefits available.