-
-
Notifications
You must be signed in to change notification settings - Fork 461
Closed
Description
Description
Problem Statement
UUID Strings are used heavily in our SDK and lead to a significant performance impact as reported by some of our users (e.g. #3325).
After some investigation, likely causes are:
- Slow UUID.toString on Java 8 and below
- String replacement to generate a SentryId from a UUID string (
.replace("-", ""))
Solution proposal
In addition to making the calls to UUID generation lazy (#3770) the actual generation of the UUID String performance should be improved by:
- Using
java.util.Randominstead ofjava.util.SecureRandomas we do not need to generate unguessable UUIDs (Randomhas been vendored into our SDK in [QA] Replace SecureRandom with vendored Random #3783. - Use a different method to get rid of
-in the UUIDs as.replaceuses regex under the hood which also impacts performance
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done