(--------)
Hi,
I still have some difference in the time spent for svg generation between 2 different versions of Plantuml. Check the example below. I tested it with Java 8 and OpenJdk 11 64 bit.
In a very simple puml file the latest version takes are around 200 milliseconds more. This difference increases in case of complex files. With Java 11 it takes even more time no matter which Plantuml version is used.
Version 1.2018.08
(0.000 - 256 Mo) 250 Mo - PlantUML Version 1.2018.08(0.010 - 256 Mo) 250 Mo - GraphicsEnvironment.isHeadless() false(0.011 - 256 Mo) 250 Mo - Forcing resource load on OpenJdk(0.126 - 256 Mo) 246 Mo - Setting current dir: .(0.127 - 256 Mo) 246 Mo - Setting current dir: C:\Temp\PlantUML(0.129 - 256 Mo) 246 Mo - Using default charset(0.138 - 256 Mo) 246 Mo - Setting current dir: C:\Temp\PlantUML(0.146 - 256 Mo) 246 Mo - Using default charset(0.148 - 256 Mo) 246 Mo - Using default charset(0.148 - 256 Mo) 246 Mo - Setting current dir: C:\Temp\PlantUML(0.168 - 256 Mo) 245 Mo - Setting current dir: C:\Temp\PlantUML(0.173 - 256 Mo) 244 Mo - Setting current dir: C:\Temp\PlantUML(0.173 - 256 Mo) 244 Mo - Reading file: test.puml(0.583 - 256 Mo) 193 Mo - Creating file: C:\Temp\PlantUML\test.svg(0.789 - 256 Mo) 186 Mo - Starting Graphviz process [C:\graphviz\exe\dot.exe, -Tsvg](0.790 - 256 Mo) 186 Mo - DotString size: 1647(0.921 - 256 Mo) 185 Mo - Ending process ok(0.921 - 256 Mo) 185 Mo - Ending Graphviz process(1.026 - 256 Mo) 216 Mo - TransformerFactory=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl(1.031 - 256 Mo) 216 Mo - Transformer=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl(1.092 - 256 Mo) 213 Mo - Number of image(s): 1
Version 1.2019.06
(0.000 - 256 Mo) 250 Mo - PlantUML Version 1.2019.06(0.012 - 256 Mo) 250 Mo - GraphicsEnvironment.isHeadless() false(0.013 - 256 Mo) 250 Mo - Forcing resource load on OpenJdk(0.109 - 256 Mo) 247 Mo - Found 1 files(0.110 - 256 Mo) 247 Mo - Working on C:\Temp\PlantUML\test.puml(0.132 - 256 Mo) 246 Mo - Setting current dir: .(0.132 - 256 Mo) 246 Mo - Setting current dir: C:\Temp\PlantUML(0.136 - 256 Mo) 246 Mo - Using default charset(0.142 - 256 Mo) 246 Mo - Reading from test.puml(0.143 - 256 Mo) 246 Mo - Creating AParentFolderRegular C:\Temp\PlantUML(0.176 - 256 Mo) 245 Mo - ImportedFiles::getAFile nameOrPath = ./included.puml(0.177 - 256 Mo) 245 Mo - ImportedFiles::getAFile currentDir = AParentFolderRegular::C:\Temp\PlantUML(0.177 - 256 Mo) 245 Mo - AParentFolderRegular::looking for ./included.puml(0.179 - 256 Mo) 245 Mo - AParentFolderRegular::dir = C:\Temp\PlantUML(0.181 - 256 Mo) 245 Mo - AParentFolderRegular::Filecurrent C:\Temp\PlantUML\.\included.puml(0.185 - 256 Mo) 245 Mo - ImportedFiles::getAFile filecurrent = AFileRegular::C:\Temp\PlantUML\included.puml(0.186 - 256 Mo) 245 Mo - Using default charset(0.195 - 256 Mo) 245 Mo - Reading from ./included.puml(0.197 - 256 Mo) 245 Mo - Using default charset(0.199 - 256 Mo) 245 Mo - Reading from ./included.puml(0.201 - 256 Mo) 245 Mo - Getting parent of AFileRegular::C:\Temp\PlantUML\included.puml(0.202 - 256 Mo) 245 Mo - Creating AParentFolderRegular C:\Temp\PlantUML(0.212 - 256 Mo) 245 Mo - -->The parent is AParentFolderRegular::C:\Temp\PlantUML(0.214 - 256 Mo) 245 Mo - Creating AParentFolderRegular C:\Temp\PlantUML(0.235 - 256 Mo) 243 Mo - Reading file: test.puml(0.784 - 355 Mo) 309 Mo - Creating file: C:\Temp\PlantUML\test.svg(0.965 - 355 Mo) 303 Mo - Starting Graphviz process [C:\graphviz\exe\dot.exe, -Tsvg](0.967 - 355 Mo) 303 Mo - DotString size: 1647(1.086 - 355 Mo) 301 Mo - Ending process ok(1.087 - 355 Mo) 301 Mo - Ending Graphviz process(1.183 - 355 Mo) 297 Mo - TransformerFactory=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl(1.187 - 355 Mo) 297 Mo - Transformer=class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl(1.248 - 355 Mo) 295 Mo - Number of image(s): 1
test.puml:
@startuml !include ./included.puml title Test Start -[#00AA00]-> "Element 1" as element_1 <<Activity>> element_1 -[#00AA00]-> "Element 2" as element_2 <<Activity>> element_2 -[#00AA00]-> "Element 3" as element_3 <<Activity>> element_3 -[#00AA00]-> "Element 4" as element_4 <<Activity>> element_4 -[#00AA00]-> "Element 5" as element_5 <<Activity>> element_5 -[#00AA00]-> "Element 6" as element_6 <<Activity>> element_6 -[#00AA00]-> "Element 7" as element_7 <<Activity>> element_7 -[#00AA00]-> "Element 8" as element_8 <<Activity>> element_8 -[#00AA00]-> "Element 9" as element_9 <<Activity>> element_9 -[#00AA00]-> "Element 10" as element_10 <<Activity>>@enduml
included.puml:
@startumlskinparam Note { BorderColor Gray BackgroundColor White FontColor Gray FontName Arial FontSize 12 FontStyle Bold BorderThickness 1 } skinparam Package { BorderColor Black BackgroundColor #F7F7F7 FontColor Black FontName Arial FontSize 12 FontStyle Normal BorderThickness 1 } skinparam Activity { ArrowColor Gray ArrowFontName Arial ArrowFontColor Gray ArrowFontSize 12 ArrowFontStyle Normal ArrowHeaderColor Red BorderColor #00AA00 BackgroundColor White FontColor Black FontName Arial FontSize 12 FontStyle Normal }
@enduml
Regards