Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use codepoints instead of chars in the lexer.
Grand wizard overlord @whitequark recommended this as it will bypass the need for creating individual String instance for every character (at least not until needed). This becomes noticable on large inputs (e.g. 100 MB of XML). Previously these would result in the kernel OOM killing the process. Using codepoints memory increase by a "mere" 1-1,5 GB.
- Loading branch information