Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use glibc strlen to speed up xmlStrlen
Benchmark results: xmlStrlen (entire HTML file): 926171.936981 μs glibc_xmlStrlen (entire HTML file): 36905.903992 μs delta (xmlStrlen ÷ glibc_xmlStrlen): 25.094584 times xmlStrlen (average string): 57479.204010 μs glibc_xmlStrlen (average string): 5802.069000 μs delta (xmlStrlen ÷ glibc_xmlStrlen): 9.905937 times xmlStrlen (bigger string): 388056.315979 μs glibc_xmlStrlen (bigger string): 12797.856995 μs delta (xmlStrlen ÷ glibc_xmlStrlen): 30.318382 times xmlStrlen (smallest string): 15870.046021 μs glibc_xmlStrlen (smallest string): 6282.208984 μs delta (xmlStrlen ÷ glibc_xmlStrlen): 2.527903 times See https://gitlab.gnome.org/GNOME/libxml2/-/issues/212 for reference.
- Loading branch information