-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package creation takes long time when there are many files to be packaged. #33
Comments
Hmmm... The touch logic exists in order to ensure that files are packaged swaddle_touch_setMtimeAndAtimeAllRecursivelyUnderSimulatedRoot()
{
local timestampInEpochSeconds="$(swaddle_configure_timestamp)"
local mtime="$(date -d @$timestampInEpochSeconds +'%Y%m%d%H%M.%S')"
local filePath
for filePath in "$@"
do
swaddle_simulateroot_execute find "$filePath" -type f PASS TO
touch -m -a -c -t "$mtime" "$filePath"
done
}
_swaddle_touch_setMtimeAndAtimeAllRecursivelyUnderSimulatedRoot()
{
NOW DEAD
}
Do you want to submit a patch? Raphael Cohn UK Office: Registered office: On 13 October 2015 at 11:29, chelarua [email protected] wrote:
|
Hi, thanks for the reply. Made a pull request for this #34. Thanks |
Right, I'll review the pull req today. Do you want to retain copyright on Raphael Cohn UK Office: Registered office: On 28 October 2015 at 10:24, chelarua [email protected] wrote:
|
Thanks, don't think that is needed |
Hello
we (together with @ringods) are using swaddle to create a package from many (~ 2000) of files and it seems its taking a bit long(18-20 mins). I checked a bit and it seems that most of the time is spent in _swaddle_touch_setMtimeAndAtimeAllRecursivelyUnderSimulatedRoot when it's calling fakeroot, which also seems to be doing a sleep on each call. I tried disabling _swaddle_touch_setMtimeAndAtimeAllRecursivelyUnderSimulatedRoot and the packaging time was much shorter, about a minute.
Any suggestions/ advice on this?
Thank you
The text was updated successfully, but these errors were encountered: