
I have observed that typically mkgmap does not use more that 2 threads. If the max-jobs parameter is set to a greater value than 2 the surplus threads are blocked in the MapMaker.loadFromFile. There is a note in the MapMaker source code: // work around non-reentrancy of GType priority stuff // by serialising the map reading Is there any chance to remove this synchronization to get a gain of more threads? What has to be done to remove the synchronization in the MapMaker class? WanMil

Hi
Is there any chance to remove this synchronization to get a gain of more threads? What has to be done to remove the synchronization in the MapMaker class?
I am pretty sure that the synchronization is not needed now and probably never was. In any case, even if some synchronization is needed, it shouldn't be around the complete reading routine. I'll remove it. ..Steve

Thanks! mkgmap uses more of the CPU power now! WanMil
Hi
Is there any chance to remove this synchronization to get a gain of more threads? What has to be done to remove the synchronization in the MapMaker class?
I am pretty sure that the synchronization is not needed now and probably never was.
In any case, even if some synchronization is needed, it shouldn't be around the complete reading routine.
I'll remove it.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Steve Ratcliffe
-
WanMil