[Tilesathome] Threading maplint optimizing?
Matti Viljanen
matti.viljanen at wippies.com
Wed Dec 17 09:35:43 GMT 2008
Hi
Just crossed my mind...
I have a quad-core processor, so I no doubt use Fork=4. Using Fork sure cuts rendering time, but I think it still could do better. I'm referring to this kind of output:
[#7 84% maplint-z16] Optimizing maplint_16_19751_24429.png...
[#7 85% maplint-z16] Writing tile 19752 24429...
[#7 85% maplint-z16] Optimizing maplint_16_19752_24429.png...
[#7 85% maplint-z16] Writing tile 19753 24429...
[#7 85% maplint-z16] Optimizing maplint_16_19753_24429.png...
It seems that the same operation is done to a number of small files in a directory. Maybe we could, say, split the file list in so many parts that Fork has set, and then render them in parallel. Or am I missing something important about this whole rendering process?
Well, this could lead to a situation where there would be, say, three layers under "main fork" at a time, so this would lead into some 12 processes fighting for CPU time, but then again I have faith in job schedulers...
I also could start to (familiarize with Perl and) figure this out on my own, I have some experience in programming. Just tell me that it can be done that way...
--
Matti Viljanen
matti.viljanen at wippies.com
--
Saunalahti DataPaketti - tilaa nyt, saat 2 kk veloituksetta ja Nettitikun kaupan päälle!
http://saunalahti.fi/gsm/gsmdatapaketti.php
More information about the Tilesathome
mailing list