structurizr / java

Structurizr for Java
https://docs.structurizr.com/java
Apache License 2.0
1.01k stars 288 forks source link

Optimizing SequentialIntegerIdGeneratorStrategy #321

Open klu2 opened 2 months ago

klu2 commented 2 months ago

Doesn't really fix a bug (therefore no ticket, the previous code worked correctly as well), just syntactic sugar and slight performance increasements by not synchronizing the whole object, rather use AtomicInteger for concurrent integer increase and Integer.toString() for string conversion.