Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit appending of ShortStrings to Ropes to string length < 30
The larger the size of ShortStrings we allow to be appended directly to Ropes, the more memory Wattsi consumes at runtime. We don’t need the size to be anywhere near as big as 255 — the existing code never actually needs to directly append strings with lengths any longer than 30. If we ever do run into need to append string lengths longer than 30, we could at that time just bump UTF8InlineSize up to whatever new size we actually need. Upping the size to 30 from the old size of 15 seems to increase the memory consumption by about 15–20%, or around 80–100MB. (In comparison, upping it to 255 seems to roughly double the memory consumption.)
- Loading branch information