Conversation
Port width/wcswidth/wcstwidth, wrap, clip, escape, and SGR to C11 (libwcwidth) with utf8 or codepoints/u32 API's, and and codepoints/u32 terminal override support. Note that for the higher level functions, the u32 variants are slow -- they convert to utf8 then back to u32, and so the utf8 functions are preferred. Exposed the C11 library as an optional CPython extension, which should drastically improve python wcwidth performance, though the real aim was to use the existing python tests and frameworks (ucs-detect) to exercise and verify the C11 code.
b2d9a66 to
3998d25
Compare
Merging this PR will regress 1 benchmark
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #233 +/- ##
===========================================
- Coverage 100.00% 99.80% -0.20%
===========================================
Files 27 27
Lines 1983 2015 +32
Branches 464 469 +5
===========================================
+ Hits 1983 2011 +28
- Misses 0 2 +2
- Partials 0 2 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ith 'import' and 'import from'' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This also allows building CI with more python versions by splitting into two different steps
|
Superseded by #247 and another PR to enable C Python shim, later. |
I am creating a draft PR for the purpose of working with CI workflows of building wheels and to see performance results of codspeed.
This is only a draft, and will be under review and revision for a while longer, especially the documentation.