|
|
|
|
|
by tw061023
1099 days ago
|
|
> Yes, overwhelmingly so. I wonder how common business tasks can be coerced to this model. Also I believe this is not a good excuse - the language should still provide a way to properly manage allocations even if it is not needed most of time. > The basic rule of manual optimization is that the upper bound for the improvement that can be gained by optimizing any one "thing" is equal to the proportion of the program's runtime that is devoted to that thing. Yep, and this is why you should always measure things before optimizing. But then again, you can save yourself a lot of time by not doing stupid things like allocating from heap in a hot loop and profiling just to discover such basic mistakes. |
|