-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): Further optimize debug ID parsing #14365
Conversation
size-limit report 📦
|
I'm disappointed this hits the bundle size like this 😭 Let me see if I can help that... |
835eb5a
to
57b6625
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundle size reduction!
Since the size-checker doesn't seem entirely happy with this PR I would suggest keeping the logic for multiple stack parsers. I know it is unlikely to happen that you have more than 1 but it is technically correct. The rest seems good though 👍 |
Before I removed the logic for multiple stack parsers, the size additions were 2-3x what they are now. |
convinced |
This PR further optimises debug ID parsing.
Map
if we're actually using debug IDsglobalThis._sentryDebugIds
hasn't been modified since the last call, we return a cached result{ filename, debugId }
rather thanStackFrame[]
so we no longer walk the frames every timegetFilenameToDebugIdMap()
since we can now rely on the caching