<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Bernd,<br><br>It is difficult to say how many strings are kept in the table when <br>your have 4 threads in parallel, but it seems the value 100003 fits quite well.<br>Larger values did not improve anything in my tests (I ignore changes &lt; 2 seconds).<br><br>BTW: It's very difficult to get exact values. <br>If you execute mkgmap two times after not using it for a while<br>the 2nd run will always be faster because disk caches are already <br>filled with good values.<br>So, you first have to execute mkgmap a few times with exactly the<br>same parms and input files to find out how many seconds <br>it executes on average and how large the measurement error is.<br>You may already see 5 % difference here<br>when using multiple threads (--max-jobs), because sometimes<br>a worse case happens, sometimes not. This also seems to<br>depend on actions from JRE like just in time (JIT) compiles etc, <br>not talking about other background programs like system updates, <br>downloads, virus scanners, media players etc.<br><br>The worst case that can happen is that you find a good value for <br>one set of input files which is bad for many other sets of input files.<br><br>Gerd<br><br><div>&gt; From: weigelt.bernd@web.de<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Date: Thu, 8 May 2014 18:28:22 +0200<br>&gt; Subject: Re: [mkgmap-dev] Java tuning hint<br>&gt; <br>&gt; Am Donnerstag, 8. Mai 2014, 17:33:22 schrieb Gerd Petermann:<br>&gt; <br>&gt; Hello Gerd<br>&gt; <br>&gt; I've made three tests with my bonn extract<br>&gt; <br>&gt; without -XX:StringTableSize<br>&gt; Time started: Thu May 08 17:57:43 CEST 2014<br>&gt; Time finished: Thu May 08 18:04:54 CEST 2014<br>&gt; Total time taken: 430804ms<br>&gt; <br>&gt; with -XX:StringTableSize=100003<br>&gt; Time started: Thu May 08 18:07:33 CEST 2014<br>&gt; Time finished: Thu May 08 18:14:20 CEST 2014<br>&gt; Total time taken: 406425ms<br>&gt; <br>&gt; with -XX:StringTableSize=1000003<br>&gt; time started: Thu May 08 18:16:20 CEST 2014<br>&gt; Time finished: Thu May 08 18:23:06 CEST 2014<br>&gt; Total time taken: 405556ms<br>&gt; <br>&gt; This are tests on my small laptop with 3.6 GB RAM with 64bit Linux<br>&gt; <br>&gt; Bernd<br>&gt; <br>&gt; &gt; I tried both, and the smaller values seemed to work better for mkgmap.<br>&gt; &gt; I guess it depends on the input files what value is best, but at least <br>&gt; &gt; the default 1009 doesn't work well, so any much higher prime value should<br>&gt; &gt; help.<br>&gt; <br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div></body>
</html>