[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a
Garrett Holmstrom
gholms at fedoraproject.org
Sun Jun 16 02:31:02 UTC 2013
The following commit has been merged in the master branch:
commit fda95fabd929bbd0aeae4cd60aa60ea14ee57692
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Sun Apr 14 01:01:58 2013 -0700
Speed up euca-bundle-image a little bit
diff --git a/euca2ools/commands/bundle/bundle.py b/euca2ools/commands/bundle/bundle.py
index d5ed85f..16d86cb 100644
--- a/euca2ools/commands/bundle/bundle.py
+++ b/euca2ools/commands/bundle/bundle.py
@@ -170,7 +170,7 @@ def _write_tarball(infile, outfile, show_progress=False):
bar.start()
while tar_thread.is_alive():
bar.update(infile.tell())
- time.sleep(0.5)
+ time.sleep(0.01)
bar.finish()
tar_thread.join()
@@ -190,7 +190,7 @@ def _calc_digest_and_exit(in_fileno, out_fileno, result_pipe):
outfile = os.fdopen(out_fileno, 'w')
digest = hashlib.sha1()
while True:
- chunk = infile.read(65536)
+ chunk = infile.read(8192)
if chunk:
digest.update(chunk)
outfile.write(chunk)
@@ -208,7 +208,7 @@ def _write_single_part(infile, part_fname, part_size):
with open(part_fname, 'w') as part:
bytes_to_write = part_size
while bytes_to_write > 0:
- chunk = infile.read(min((bytes_to_write, 65536)))
+ chunk = infile.read(min((bytes_to_write, 8192)))
if chunk:
part.write(chunk)
part_digest.update(chunk)
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list