4 ms·
There's a reason languages with garbage collectors aren't used where speed is important - because they normally get in the way.
by berkut 15y ago
There's a reason languages with garbage collectors aren't used where speed is important - because they normally get in the way.
- stcredzero 15y agoI wasn't thinking of GC. GC's been around awhile, and is quite advanced, yet is not desired for certain purposes. Yet, there must be something that programmers conceptualize when they allocate a struct, do whatever they do with it, then free it. Everything that I know about how programmer's minds work tells me that, most likely, 80% of this work is fairly mechanical. Then again, you might want to look at iGC. (Granted, phones are pretty ridiculously powerful in comparison to lots of embedded devices.) By tailoring their GC to the particular way it's used, they can do interesting optimizations. (Use comparisons to addresses to drastically reduce the number of roots for tracing.)