Skip to content

Reduce calls to UUID.randomUUID#365

Merged
Zakaria-Kofiro merged 2 commits intomasterfrom
transactionIdGenerator
Jan 23, 2025
Merged

Reduce calls to UUID.randomUUID#365
Zakaria-Kofiro merged 2 commits intomasterfrom
transactionIdGenerator

Conversation

@kevin-mcgoldrick
Copy link
Collaborator

Reduce calls to UUID.randomUUID

Agent tracing has shown that UUID.randomUUID makes up 20% of the heap allocation during test runs. The LoveEvent.transactionID is being updated for every script step independent of usage. These code changes reduce the UUID.randomUUID call to the use cases in which the value is utilized.

image

Please make sure these check boxes are checked before submitting

  • ** Squashed Commits **
  • ** All Tests Passed ** - mvn clean test -P default

** PR review process **

  • Requires one +1 from a reviewer
  • Repository owners will merge your PR once it is approved.

Copy link
Collaborator

@Zakaria-Kofiro Zakaria-Kofiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Zakaria-Kofiro Zakaria-Kofiro merged commit a2a0f20 into master Jan 23, 2025
3 checks passed
@Zakaria-Kofiro Zakaria-Kofiro deleted the transactionIdGenerator branch January 23, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants