[Tilesathome] optimizePNGs threading speedup patch for _unstable

Rene Wunderlich rene.wunderlich at milaro.net
Wed Nov 5 11:58:55 GMT 2008


Hi all,

Now 2 new patches for _unstable ;)

0001_removing_unused_gd_images.patch.gz

removed unused global GD images from tilesGen.pl
u use only the local images within Tileset.pm

  # create blank comparison images
...


0002_optimizePngTasks.patch.gz

add a new version from the threaded optimizePng
in lib/optimizePngTasks.pm

WARNING: it's experimentell DO NOT USE IT!!!!!!


it only work with Fork=0 and the new option cores=1 or more ;)
on my 4 cores is this version 2-3 times faster as the forked version

i have it only teset with the xy command and not in loop modus

the problem is the GDlib is not thread save...


sorry for my bad englich i hope my code is better ;)


René


Matthias Julius schrieb:
> Rene Wunderlich <rene.wunderlich at milaro.net> writes:
> 
>> Hi t at h list,
>>
>> thanks to all t at h members for the big work on osm ;)
>>
>> and now a bit work from me for u all
>>
>> WARNIG THIS PATCH IS EXPERIMENTELL!!!!!!!!!!!!!!!!!!!!!!!
>> do not use it on a unwatched client!
>>
>> i write a smal patch to add multithreading to the optimizePNGs
>> funktion in lib/Compress.pm
> 
> Hi Rene,
> 
> it is great when someone contributes to the code.
> 
> But, are you aware of the _unstable branch?  We use that for
> developing and it gets merged/copied to the stable branch once in a
> while.
> 
> Especially the PNG optimizing stuff has changed a lot in _unstable and
> Compress.pm doesn't exist any more.
> 
> I would hate to see your efforts wasted
> 
> Maybe it is time for a new "release" in order to let _unstable not
> deviate too far from stable.  It seems to be working quite reliably
> (at least on my system).
> 
> Matthias
> 
> _______________________________________________
> Tilesathome mailing list
> Tilesathome at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/tilesathome
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001_removing_unused_gd_images.patch.gz
Type: application/gzip
Size: 601 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20081105/186cf79d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002_optimizePngTasks.patch.gz
Type: application/gzip
Size: 2450 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20081105/186cf79d/attachment-0001.bin>


More information about the Tilesathome mailing list