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

IDLE: Explain print slowness and speedup method #87449

Closed
terryjreedy opened this issue Feb 21, 2021 · 7 comments
Closed

IDLE: Explain print slowness and speedup method #87449

terryjreedy opened this issue Feb 21, 2021 · 7 comments
Assignees
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 43283
Nosy @terryjreedy, @miss-islington
PRs
  • bpo-43283: Rearrange some IDLE doc paragraphs. #24604
  • [3.9] bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) #24607
  • [3.8] bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604) #24608
  • bpo-43283: Add IDLE doc paragraph about print speed #24615
  • [3.9] bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) #24631
  • [3.8] bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) #24632
  • 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 = 'https://github.com/terryjreedy'
    closed_at = <Date 2021-02-24.01:47:41.599>
    created_at = <Date 2021-02-21.06:16:39.538>
    labels = ['3.8', '3.9', '3.10', 'expert-IDLE', 'type-feature', 'docs']
    title = 'IDLE: Explain print slowness and speedup method'
    updated_at = <Date 2021-02-24.01:47:41.598>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2021-02-24.01:47:41.598>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2021-02-24.01:47:41.599>
    closer = 'terry.reedy'
    components = ['Documentation', 'IDLE']
    creation = <Date 2021-02-21.06:16:39.538>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43283
    keywords = ['patch']
    message_count = 7.0
    messages = ['387440', '387442', '387443', '387444', '387595', '387597', '387598']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'docs@python', 'miss-islington']
    pr_nums = ['24604', '24607', '24608', '24615', '24631', '24632']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43283'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @terryjreedy terryjreedy added 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement labels Feb 21, 2021
    @terryjreedy terryjreedy added 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement labels Feb 21, 2021
    @terryjreedy
    Copy link
    Member Author

    https://stackoverflow.com/questions/66286367/why-is-my-function-faster-than-pythons-print-function-in-idle had some tests of printing speed that showed that print in IDLE can be much slower than in REPL. I did further tests that showed than combining chunks and lines into a single string can erase most of the difference.

    For easier review, the first patch just rearranges current paragraphs to bring together those dealing with 2 processes and sys.stdxxx. Some are also re-wrapped. The second patch will contain just the new paragraph.

    @terryjreedy
    Copy link
    Member Author

    New changeset 4cf7bb8 by Terry Jan Reedy in branch 'master':
    bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
    4cf7bb8

    @miss-islington
    Copy link
    Contributor

    New changeset 6ddb255 by Miss Islington (bot) in branch '3.8':
    bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
    6ddb255

    @miss-islington
    Copy link
    Contributor

    New changeset 693aeac by Miss Islington (bot) in branch '3.9':
    bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
    693aeac

    @terryjreedy
    Copy link
    Member Author

    New changeset 2827e8a by Terry Jan Reedy in branch 'master':
    bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
    2827e8a

    @miss-islington
    Copy link
    Contributor

    New changeset e202f1e by Miss Islington (bot) in branch '3.9':
    bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
    e202f1e

    @terryjreedy
    Copy link
    Member Author

    New changeset bdf0fec by Miss Islington (bot) in branch '3.8':
    bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) (GH-24632)
    bdf0fec

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir topic-IDLE type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants