-
Notifications
You must be signed in to change notification settings - Fork 49
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
Reduce synchronization scope when generating the TSID #25
Labels
enhancement
New feature or request
Comments
fabiolimace
added a commit
that referenced
this issue
Feb 5, 2023
I did as you suggested, Vlad. Thanks for the tip! |
Released v5.2.2. 🎉 |
Thanks. I plan on creating a |
This is going to be great! Take what you need from this project and use it on your own. Go ahead and make a better TSID! I don't intend to add more features here. From now on, this project will only be maintained. I'm getting tired. I wish you good luck! |
All the best 👍 |
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
"I don't intend to add more features here. From now on, this project will only be maintained. I'm getting tired. I wish you good luck!" f4b6a3#25 (comment)
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
vladmihalcea
added a commit
to vladmihalcea/hypersistence-tsid
that referenced
this issue
Feb 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the
TsidFactory.create
method is synchronized:But, the
synchronized
is needed forgetTime
only. So, it isgetTime
that should besynchronized
instead because of the timestamp monotonicity issues:This will reduce the scope of the Thread contention, especially when using a
ThreadLocalRandom
generator.The text was updated successfully, but these errors were encountered: