Closed
Description
Every time pinpoint
is called a new SourceMap.SourceMapConsumer
object is created. Loading the source map into the consumer object is slow, so for multiple pinpoint
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 the StacktraceGPS
constructor?
I can submit a PR if we can agree on an API.
Metadata
Metadata
Assignees
Labels
No labels