Merge pull request #129 from noxiouz/speedup_text_formatter [TextFormatter] Preallocate enough memory for keys to speedup