3 ms·
Once upon a time, there was Symbian OS, with very limited resources and an ugly tendency to fragment the heap. And the heaps were small, given how little memory
by inglor_cz 6y ago
Once upon a time, there was Symbian OS, with very limited resources and an ugly tendency to fragment the heap. And the heaps were small, given how little memory popular devices like Nokia E52 had.
I wrote a XML DOM parser that relied heavily on placement new and could recycle most of the nodes among documents. It sped up parsing by over 20 times. Some documents (> 5 MB) that were previously unparseable became parseable.