GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — email.header: folding a long header takes quadratic time · Issue #161284 · python/cpython Open Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:
Lines 564 to 566 in 7e3290d
import email, time for n in (1_000, 2_000, 4_000, 8_000): msg = email.message_from_string('Subject: ' + 'word ' * n + '\n\nbody\n') start = time.perf_counter() msg.as_string() print(f'{n:>5,}: {(time.perf_counter() - start) * 1000:.1f} ms')
This is a different code path from gh-160675 and gh-136063, which are about Proposed fixKeep the total length up to date in CPython versions tested on:CPython main branch Operating systems tested on:macOS Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |