textwrap icon indicating copy to clipboard operation
textwrap copied to clipboard

Add fast path to `UnicodeBreakProperties::find_words`

Open mgeisler opened this issue 4 years ago • 0 comments

The method is terribly complex and somewhat slow — we should rework it to have a fast path for the case where we don't see any CSI characters in the string.

Originally posted by @mgeisler in https://github.com/mgeisler/textwrap/pull/313#discussion_r611017466

mgeisler avatar May 02 '21 17:05 mgeisler