Skip to content

BVec::push_encode_utf16, Some micro optimizations#764

Merged
lhecker merged 1 commit into
mainfrom
dev/lhecker/bvec-utf16
Feb 14, 2026
Merged

BVec::push_encode_utf16, Some micro optimizations#764
lhecker merged 1 commit into
mainfrom
dev/lhecker/bvec-utf16

Conversation

@lhecker

@lhecker lhecker commented Feb 13, 2026

Copy link
Copy Markdown
Member

No description provided.

@lhecker
lhecker requested a review from qbradley February 13, 2026 22:06
use edit::{buffer, glob, hash, json, oklab, simd, unicode};
use stdext::arena::{self, scratch_arena};
use stdext::collections::BVec;
use stdext::unicode::Utf8Chars;

@lhecker lhecker Feb 13, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moves the Utf8Chars into stdext so we can reuse it for push_encode_utf16. Hence there's some extra changes here.

BVec::push_encode_utf16: Direct translation from UTF8 to UTF16 (useful on Windows)
Utf8Chars: A parser which works directly on [u8] instead of str

@lhecker
lhecker merged commit ff45b14 into main Feb 14, 2026
6 checks passed
@lhecker
lhecker deleted the dev/lhecker/bvec-utf16 branch February 14, 2026 00:51
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.

2 participants