Skip to content

Conversation

@tmm1
Copy link

@tmm1 tmm1 commented Nov 9, 2024

@tmm1 tmm1 merged commit 8ed2e82 into main Nov 9, 2024
1 check passed
tmm1 pushed a commit that referenced this pull request Nov 9, 2024
Based on openai#331

Uses Regex in _encode_ordinary_native instead of fancy-regex, to get a 6x speedup. To make the
regex patterns compatible with Regex, drops part of thpatterns for whitespaces, and handles the
whitespaces with scripting instead of regex. Still with exact same output. _encode_native calls
_encode_ordinary_native_impl directly (_encode_ordinary_native is a wrapper of
_encode_ordinary_native now).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant