[Libreoffice] [PATCH] installer::archivefiles - remove external find and chmod forks
Steve Butler
stevenb at kjross.com.au
Sun Dec 19 21:16:03 PST 2010
Hi,
The attached patch is a micro-optimization that uses the zip file contents
instead of directory scans and uses perl's builtin chmod function to modify
the permissions of the files.
I have only tested on Linux where a simple "time" test showed it cut 10
seconds off my make dev-install time from 1:25 to 1:15 minutes on a Core i5
system.
I don't have a build environment I can use to test on Windows but the code
should be relatively straightforward compared for the DLL processing to get
right. Testing by others who have a windows build setup would be
appreciated as the cost of fork might cause a more significant reduction on
that platform.
I don't really understand what this installer is doing yet so I thought I'd
just get my feet wet by doing this suggested micro-optimization until I have
a bit more time to look at what it's doing. I did notice the whole process
seems heavily CPU bound for most of its duration, but that might be the
unzip process.
Regards
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101220/a8723792/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_installer.pl_reduce_forks.diff
Type: application/octet-stream
Size: 3620 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101220/a8723792/attachment.obj>
More information about the LibreOffice
mailing list