classification
Title: A little faster ElementTree serializing
Type: performance Stage: patch review
Components: Library (Lib), XML Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: martin.panter, scoder, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2015-12-16 12:51 by serhiy.storchaka, last changed 2015-12-17 02:21 by martin.panter.

Files
File name Uploaded Description Edit
etree_write.patch serhiy.storchaka, 2015-12-16 12:51 review
Messages (2)
msg256517 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-12-16 12:51
Proposed patch makes ElementTree serializing to xml and html formats a little faster. For example the write_utf8_parse_bytesIO test from lxml benchmark suite now is up to 5% faster, tostring_utf8 now is up to 9% faster.

Even with this patch, serializing ElementTree still is a weak link in comparison with lxml, it is 3-5 times slower.
msg256571 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-12-17 02:21
Suggested further speedup
History
Date User Action Args
2015-12-17 02:21:43martin.pantersetnosy: + martin.panter
messages: + msg256571
2015-12-16 12:51:47serhiy.storchakacreate