summaryrefslogtreecommitdiff
path: root/main/utils.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-23 09:46:54 -0600
committerDan McGee <dan@archlinux.org>2011-02-23 09:46:54 -0600
commitf6c41b273c8962718b303c6050c2fd8bcea533a8 (patch)
treea6ec976a0f225852faa74bbb0955035f228ba78e /main/utils.py
parentdfc4d919f1b0349d5143764c3f8f62c240e50623 (diff)
reporead performance improvements
When importing over a million files, it makes sense to take the slightly faster route and call the PackageFile() constructor directly rather than going through the related manager's create method. We can also get huge performance improvements, especially with files databases, by using the 'io' rather than 'codecs' module. The former is now implemented in C in 2.7 and results in a no-work import (so measuring only the DB read speed) of extra.files.tar.gz from ~30 seconds to ~5 seconds. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/utils.py')
0 files changed, 0 insertions, 0 deletions