Skip to content

perf: resolve a namespace prefix without allocating - #29

Open
lpatiny wants to merge 1 commit into
mainfrom
perf-resolve-namespace-without-split
Open

perf: resolve a namespace prefix without allocating#29
lpatiny wants to merge 1 commit into
mainfrom
perf-resolve-namespace-without-split

Conversation

@lpatiny

@lpatiny lpatiny commented Aug 27, 2026

Copy link
Copy Markdown
Member

resolveNamespace ran split(':') on every attribute of every element. Reading a 344 MB mzML carries about 1.4 million of them, so that is 1.4 million arrays for a question two indexOf calls answer: 1447 ms to 1396 ms, median of three runs each.

`resolveNamespace` ran `split(':')` on every attribute of every element.
Reading a 344 MB mzML carries about 1.4 million of them, so that is 1.4
million arrays for a question two `indexOf` calls answer: 1447 ms to 1396 ms,
median of three runs each.

Assisted-By: Claude Opus 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant