commit | 3a204a7e481883d277f7c093fabf9632746571d7 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Sat Mar 23 19:41:34 2002 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Sat Mar 23 19:41:34 2002 +0000 |
tree | 41dd93602799aa240ff7228b6c9deb350fdf2ac0 | |
parent | ddea208be9e2a8fa281e25ebbc890378dd2aa286 [diff] |
Grow the string buffer at a mildly exponential rate for the getc version of get_line. This makes test_bufio finish in 1.7 seconds instead of 57 seconds on my machine (with Py_DEBUG defined). Also, rename the local variables n1 and n2 to used_v_size and total_v_size.