DRAFT: libwcwidth portable C11 library - #233
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 1976 2010 +34
Branches 463 468 +5
===========================================
+ Hits 1976 2006 +30
- 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>
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.