diff options
author | Dan McGee <dan@archlinux.org> | 2014-01-11 13:07:40 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-01-11 13:07:40 -0600 |
commit | 3827215fa3335f8da3c82d4d098eb402b6d29dbc (patch) | |
tree | a057c6f3d5ca70da72b01b6a416a7ab667bc9e56 /sitestatic/archweb.js | |
parent | f4d49590153a5c39d4b60ba0a9c2901c344ff45a (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 'sitestatic/archweb.js')
0 files changed, 0 insertions, 0 deletions