Abdelrazak Younes <you...@lyx.org> writes: > No, you can also use vector::reserve in order to make sure that the > memory is never reallocated.
Only if you know in advance how many tokens are going to be read, which can be approximated by file size, but is IMO less clean than returning a copy as I did. I did some profiling on a Userguide re-importation, and it is too fast to be able to profile anything... JMarc