-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: split sText into two specialized loops
The fact of the matter is that the test for non-space characters matters only outside of the root element, which is a minority of cases. The test for ]]> matters only inside the root. (Outside the root, it raises the non-space text error.) The specialized code improves performance.
- Loading branch information
Showing
1 changed file
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters