-
Notifications
You must be signed in to change notification settings - Fork 36
Re-use mapConsumer when resolving multiple call stacks #41
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
Comments
I was also facing similar problem, I have added #43. Let me know what do you think.. |
This is partially fixed by e173aff — we can take it a step further by splitting up I'm afraid I don't have time for this refactoring tonight. Hopefully will find time soon. |
This allows us to avoid multiple SourceMapConsumers for the same source map URL. Issue: #41
@mattzeunert @abhinavsinghvi I created a candidate fix that caches SourceMapConsumer Promises, but as you can see it fails in a couple edge cases on Travis CI. I'm sure I missed something silly, but I'll have to attack this another day. It would be extra cool if one of you can figure out what I missed. Just run |
I've reproduced and fixed the issue locally, and the PR is passing. But I think the PR tests are only a subset of the full tests from the push you referenced, so there might still be issues. |
This is fixed, as verified by tests, by merging #48. Thanks again both; this will ship in v3.0.0 soon! |
What is the plan for releasing stacktrace js with these changes? Thanks. |
I'm hoping to prioritize some time on stacktrace.js in the next couple
weeks.
…On Thu, Jan 12, 2017 at 4:29 AM Abhinav Singhvi ***@***.***> wrote:
What is the plan for releasing stacktrace js with these changes? Thanks.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADJTuaA6p2pGZsEECD_UGqUe9B-fgxdks5rRg6UgaJpZM4KbIM2>
.
|
Hi Eriwen, Please let me know if you are planning to release stacktrace js library with these changes anytime soon. Thanks, |
Uh oh!
There was an error while loading. Please reload this page.
Every time
pinpoint
is called a newSourceMap.SourceMapConsumer
object is created. Loading the source map into the consumer object is slow, so for multiplepinpoint
calls the mapConsumer should be re-used.Possible Solution
This change could be made without any changes to the API. However, caching the mapConsumer uses a lot of memory, so maybe this behavior should be opt-in only.
Maybe a
cacheMapConsumers
boolean could be passed into theStacktraceGPS
constructor?I can submit a PR if we can agree on an API.
The text was updated successfully, but these errors were encountered: