Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little faster ElementTree serializing #70069

Open
serhiy-storchaka opened this issue Dec 16, 2015 · 2 comments
Open

A little faster ElementTree serializing #70069

serhiy-storchaka opened this issue Dec 16, 2015 · 2 comments
Labels
3.12 bugs and security fixes performance Performance or resource usage stdlib Python modules in the Lib dir topic-XML

Comments

@serhiy-storchaka
Copy link
Member

BPO 25881
Nosy @scoder, @vadmium, @serhiy-storchaka
Files
  • etree_write.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2015-12-16.12:51:47.148>
    labels = ['expert-XML', 'library', 'performance']
    title = 'A little faster ElementTree serializing'
    updated_at = <Date 2015-12-17.02:21:43.545>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2015-12-17.02:21:43.545>
    actor = 'martin.panter'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'XML']
    creation = <Date 2015-12-16.12:51:47.148>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['41328']
    hgrepos = []
    issue_num = 25881
    keywords = ['patch']
    message_count = 2.0
    messages = ['256517', '256571']
    nosy_count = 3.0
    nosy_names = ['scoder', 'martin.panter', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue25881'
    versions = ['Python 3.6']

    @serhiy-storchaka
    Copy link
    Member Author

    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.

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir topic-XML performance Performance or resource usage labels Dec 16, 2015
    @vadmium
    Copy link
    Member

    vadmium commented Dec 17, 2015

    Suggested further speedup

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @iritkatriel iritkatriel added the 3.12 bugs and security fixes label Sep 7, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.12 bugs and security fixes performance Performance or resource usage stdlib Python modules in the Lib dir topic-XML
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants