ruby/ruby — pull request #80 by funny-falcon (2012-01-10 12:55:17+00:00)
Title: Couple of tiny changes to string

* change capacity increment from `(capa + 1) * 2` to `capa * 2 + 1`
previous increment formula leads to inconvenient allocation patterns: 25bytes, 51bytes, etc
new formula leads to more comfortable allocation pattern: 24b, 48b, 96b
* change STR_BUF_MIN_SIZE from 128 to 79
128 leads to allocation of 129 bytes, which is very uncomfortable for allocators and unnecessary large.
(during Redmine startup this method is called about 3000000 times with capa < 128)