Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create a new TextDecoder for every record (#1031)
### Public-Facing Changes Do not create a new TextDecoder for every record ### Description Massively improves read performance by avoiding unnecessary creation / cleanups of TextDecoders. Before: ``` [Summary]: ticks total nonlib name 6600 7.2% 46.1% JavaScript 7693 8.4% 53.8% C++ 21411 23.3% 149.6% GC 77489 84.4% Shared libraries 16 0.0% Unaccounted ``` After (Notice the drop in GC time): ``` [Summary]: ticks total nonlib name 3950 10.1% 60.7% JavaScript 2555 6.6% 39.2% C++ 549 1.4% 8.4% GC 32426 83.3% Shared libraries 5 0.0% Unaccounted ```
- Loading branch information