Skip to content
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

Various code optimizations. #103

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Various code optimizations. #103

merged 2 commits into from
Mar 15, 2021

Conversation

onukristo
Copy link
Contributor

Context

Optimizations.

Changes

Various code optimizations.

Checklist

// We need to give a non-null random key, so triggers will be evenly spread around partitions.
// With <null> key, the kafka client will start doing some kind of batch partitioning.

String key = String.valueOf((char) ThreadLocalRandom.current().nextInt(0xFFFF));
Copy link
Contributor

Choose a reason for hiding this comment

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

UuidUtils.generatePrefixCombUuid().toString() was too expensive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Relatively to the new solution yes, but it did not matter too much on grand scale. Just a minor tweak.

@onukristo onukristo merged commit 017a6bd into master Mar 15, 2021
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