Skip to content

curtsies frontend output is very slow #262

Open
@ikanobori

Description

@ikanobori

bpython-curtsies is very slow at printing lots of output quickly.

#!python

import time
def foo():
    t0 = time.time()
    for i in range(1000):
        print i
    return time.time() - t0

foo()

foo() runs very slowly in bpython-curtsies:
python: 0.0041s
bpython: 0.3166s
bpython-curtsies:18.7237s

bpython-curtsies currently does no output buffering, forcing a greenlet context switch for every write operation. There should be buffering so this doesn't take so long.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions