Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It was allocating a string for each character, only to then immediately add it to a buffer. Instead add the character to the buffer directly. The temporary string was probably created to factor out 'Buffer.add', but I'd rather copy Buffer.add 4x times than have the perf hit. Further optimizations might be possible here as the comments says, but this is a low-risk, obvious optimization. Signed-off-by: Edwin Török <edwin.torok@cloud.com>
- Loading branch information