Issue 125121 - the tg_ext.mk step for "make writeable" takes way too long
Summary: the tg_ext.mk step for "make writeable" takes way too long
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Normal (vote)
Target Milestone: 4.2.0
Assignee: hdu@apache.org
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-19 08:25 UTC by hdu@apache.org
Modified: 2017-05-20 10:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.2.0-dev
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2014-06-19 08:25:42 UTC
The "make writeable" step in tg_ext.mk is used for setting the file and directory permissions after external tarballs have been unpacked. On windows this step takes way too long (e.g. 500 seconds for boost), especially compared to the simple task at hand.

The root cause seems to be that chmod is done for each directory individually and windows/cygwin is quite slow in starting processes.
Comment 1 SVN Robot 2014-06-19 08:34:21 UTC
"hdu" committed SVN revision 1603756 into trunk:
#i125121# speed up the "make writeable" step when building external libraries
Comment 2 hdu@apache.org 2014-06-19 08:38:24 UTC
With the fix above the process creation bottleneck is removed and the step has become about ten times faster on Windows without SSD (460sec -> 41sec for boost). With SSD storage the speedup should be even higher.