Skip to content

Is using %uuid{RANDOM} pattern in JsonTemplateLayout considered garbage-free? #3585

Answered by ppkarwasz
ViliusS asked this question in Q&A
Discussion options

You must be logged in to vote

Neither one is GC-free. Each one will create an instance of UUID and String. Scalar replacement might occur, when the JVM is hot enough, but you should test it on a concrete version of the JVM.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@ppkarwasz
Comment options

@ViliusS
Comment options

@ppkarwasz
Comment options

Answer selected by ViliusS
Comment options

You must be logged in to vote
3 replies
@ppkarwasz
Comment options

@rgoers
Comment options

rgoers Apr 7, 2025
Collaborator

@ppkarwasz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants