checkHTTPLinksPool
parameter set the number of Threads in the Thread pool used for checking URL links with the "http" protocol. The default value is 30.checkHTTPLinks
property is set to true (which is the default). For example, for this wiki the time for the parsing and generation increase to 6 seconds if external links are checked.checkHTTPLinks
parameter is not set to falseParsed 122 articles (134 files) in 6,8 seconds Including Pre-parsed in 0,3 seconds Resolved in 10,3 seconds Performing http links checks in 9,8 seconds Writing site in 0,6 seconds Completed generation in 17,8 secondsrather than this result with the default value:
Parsed 122 articles (134 files) in 7,4 seconds Including Pre-parsed in 0,3 seconds Resolved in 2,4 seconds Performing http links checks in 2 seconds Writing site in 0,5 seconds Completed generation in 10,3 seconds
<java classname="org.docgene.main.DocGenerator"> <arg value="-input=wiki/input"/> <arg value="-output=wiki/output"/> <arg value="-search=titles"/> <arg value="-checkHTTPLinksTimeOut=7"/> <arg value="-checkHTTPLinksPool=50"/> <classpath> <pathelement path="docGenerator.jar"/> </classpath> </java>
forkParser
parameter allows to perform the parsing in background threads[2]
forkParserSplit
parameter specifies in this case how many files will be parsed in one Thread (the default is 20).Parsed 122 articles (134 files) in 3,9 seconds Including Pre-parsed in 0,3 seconds Resolved in 0,3 seconds Performing http links checks in 0,3 seconds Writing site in 2,4 seconds Completed generation in 6,7 secondsrather than the default:
Parsed 122 articles (134 files) in 6,5 seconds Including Pre-parsed in 0,3 seconds Resolved in 2,4 seconds Performing http links checks in 2,1 seconds Writing site in 0,5 seconds Completed generation in 9,6 seconds
<java classname="org.docgene.main.DocGenerator"> <arg value="-input=wiki/input"/> <arg value="-output=wiki/output"/> <arg value="-search=titles"/> <arg value="-forkParser=true"/> <classpath> <pathelement path="docGenerator.jar"/> </classpath> </java>
-showDetailedGenerationTimes
command-line option allows to show detailed statistics about the generation time. For example:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -showDetailedGenerationTimes=true
By default, you will see for example on the console:Generated in 10,3 seconds Generated wiki from D:\Java\docGenerator\code\wiki\input to D:\Java\docGenerator\code\wiki\outputWith this option enabled, you will see for example on the console:
Parsed 122 articles (134 files) in 7,4 seconds Including Pre-parsed in 0,3 seconds Resolved in 2,4 seconds Performing http links checks in 2 seconds Writing site in 0,5 seconds Completed generation in 10,3 seconds Generated wiki from D:\Java\docGenerator\code\wiki\input to D:\Java\docGenerator\code\wiki\output
Parsed 182 articles (199 files) in 4,8 seconds Including Pre-parsed in 0,3 seconds Resolved in 0,1 seconds Including processing PageRank in 2 milliseconds for 6 iterations Writing site in 1 seconds Completed generation in 5,9 seconds Generated wiki from L:\WRK\Java\docgenerator\wiki\input to L:\WRK\Java\docgenerator\wiki\output
Parsed 122 articles (134 files) in 5,8 seconds Including Pre-parsed in 0,3 seconds Resolved in 0,3 seconds Performing http links checks in 0,3 seconds Writing site in 2,1 seconds Completed generation in 8,3 secondsbut the second time I have:
Parsed 122 articles (134 files) in 2,3 seconds Including Pre-parsed in 97 milliseconds Resolved in 69 milliseconds Performing http links checks in 53 milliseconds Writing site in 1,3 seconds Completed generation in 3,7 secondsand the third time:
Parsed 122 articles (134 files) in 1,5 seconds Including Pre-parsed in 69 milliseconds Resolved in 18 milliseconds Performing http links checks in 0 milliseconds Writing site in 1,3 seconds Completed generation in 2,8 seconds
checkHTTPLinks
parameter is not set to falsedocJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.