-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse shared strings using streaming mode of xml.Decoder (#31)
This allows to make less (re-)allocations and keep only parsed strings. According to measurements with file contains 505512 shared strings I've got approx. 10% time improvement, 40% less allocated memory and 15% less allocations count. Attribute 'count' with count of shared strings also helps to reduce allocations.
- Loading branch information
Showing
1 changed file
with
87 additions
and
34 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