Title: Faster UUID Generation · Issue #3809 · getsentry/sentry-java · GitHub
Open Graph Title: Faster UUID Generation · Issue #3809 · getsentry/sentry-java
X Title: Faster UUID Generation · Issue #3809 · getsentry/sentry-java
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 ...
Open Graph 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 c...
X 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 c...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/3809
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Faster UUID Generation","articleBody":"### Description\n\n# Problem Statement\nUUID Strings are used heavily in our SDK and lead to a significant performance impact as reported by some of our users (e.g. #3325).\n\nAfter some investigation, likely causes are:\n- Slow UUID.toString on Java 8 and below\n- String replacement to generate a SentryId from a UUID string (`.replace(\"-\", \"\")`)\n\n# Solution proposal\nIn addition to making the calls to UUID generation lazy (#3770) the actual generation of the UUID String performance should be improved by:\n- Using `java.util.Random` instead of `java.util.SecureRandom` as we do not need to generate unguessable UUIDs (`Random` has been vendored into our SDK in #3783.\n- Use a different method to get rid of `-` in the UUIDs as `.replace` uses regex under the hood which also impacts performance","author":{"url":"https://github.com/lbloder","@type":"Person","name":"lbloder"},"datePublished":"2024-10-21T09:28:11Z","url":"https://github.com/getsentry/sentry-java/issues/3809"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:86997555-af0d-a892-17c2-1e32dbabe8eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA2A:1E782F:9B12D:C68C6:6B04E8B0 |
| html-safe-nonce | 75f685fc1ce9d5d8e1478addff29826e0ff4e9603138e916fb84c030c3c41090 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTJBOjFFNzgyRjo5QjEyRDpDNjhDNjo2QjA0RThCMCIsInZpc2l0b3JfaWQiOiIxMTY3MzU4MzMwMjk4MjMwOTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6e18cf4610935665173752fe92c64af32bfa190dc13eedf26eb4e97fecc82297 |
| hovercard-subject-tag | issue:2601921927 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/3809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60b129d46a56c5b6575d8618642437974747991594e5832e32cd45bbabf36c4e/getsentry/sentry-java/issues/3809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60b129d46a56c5b6575d8618642437974747991594e5832e32cd45bbabf36c4e/getsentry/sentry-java/issues/3809 |
| og:image:alt | 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 c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lbloder |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width