-
So if I use such JSON template layout, is it garbage-free?
What about |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Neither one is GC-free. Each one will create an instance of |
Beta Was this translation helpful? Give feedback.
-
I hate to disagree Piotr, but our time based uuid exists for exactly this use case. It will provide a unique value across all servers. While it isn’t going to be unique forever, the length of time it is guaranteed to be unique should be sufficient for virtually any use case. |
Beta Was this translation helpful? Give feedback.
Neither one is GC-free. Each one will create an instance of
UUID
andString
. Scalar replacement might occur, when the JVM is hot enough, but you should test it on a concrete version of the JVM.