You can do the preallocation by extending the string, and then shrinking it again.
Ahah! An excellent suggestion. Thank you. I wonder though if you have any thoughts on the determining of a suitable chunk size? Should it be fixed size? Or dynamically sized? Or should I provide more information? Im not sure whats relevant. :-(
In reply to Re: Re: Memory allocation strategies
by demerphq
in thread Memory allocation strategies
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |