summaryrefslogtreecommitdiff
path: root/packages/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-01-11 13:07:40 -0600
committerDan McGee <dan@archlinux.org>2014-01-11 13:07:40 -0600
commit3827215fa3335f8da3c82d4d098eb402b6d29dbc (patch)
treea057c6f3d5ca70da72b01b6a416a7ab667bc9e56 /packages/urls.py
parentf4d49590153a5c39d4b60ba0a9c2901c344ff45a (diff)
Speed up feeds generation by batching writes
The XML generation underlying our package feeds was doing 1600+ calls to the write() method on the outfile. For some reason, the Python standard library insists on calling flush() after every write, which really makes performance take a nosedive. Wrap the write calls and do them in batches to remove some of the overhead and make feed generation a bit snappier. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/urls.py')
0 files changed, 0 insertions, 0 deletions