Skip to content

Performance regression due to width_aware_slice #717

Closed

Description

@yangle

Apparently ef91741 introduced a significant performance regression when printing a long output. (The precise commit was pinned down through git bisect.)

To reproduce it, run

$ bpython
bpython version 0.18.dev15 on top of Python 2.7.13 /tmp/bpython/.venv/bin/python2
>>> ' '.join(map(str, xrange(10000)))
(hangs)

After reverting ef91741, printing ' '.join(map(str, xrange(10000))) takes less than a blink.

Activity

  1. yangle commented on Nov 10, 2017

    @yangle
    Author

    Just realized that this is a duplicate of #703.

  2. sebastinas commented on Nov 18, 2017

    @sebastinas
    Contributor

    Let's continue that in #703.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions