diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-04-24 13:37:36 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-04-24 13:52:37 -0700 |
commit | 1e67f03e61067db7833305d0d1e3119227d170b9 (patch) | |
tree | 490553dd388d2fc7989e59dfec104928223a08a1 /README.md | |
parent | d8d8248675b439a66bb30405f952509bf64070db (diff) |
Set sensible initial sizes for growing arrays
Any values should work here, and it doesn't seem to make a siginificant
difference to startup time, as this only adds or reduces a few realloc
calls.
Starts input buffer at 4k of memory, which is nice for being the size of
a page and the size usually used in the read syscall. Initial choice
capacity set to 128, by assuming that candidates average 32 characters
long.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions