Skip to content

chore: remove unnecessary unsafe#1

Merged
nuskey8 merged 2 commits intomainfrom
chore/remove-unnecessary-unsafe
Mar 23, 2026
Merged

chore: remove unnecessary unsafe#1
nuskey8 merged 2 commits intomainfrom
chore/remove-unnecessary-unsafe

Conversation

@nuskey8
Copy link
Copy Markdown
Owner

@nuskey8 nuskey8 commented Mar 23, 2026

I replaced several unnecessary unsafe codes with safe codes. I have confirmed that these changes compile to an equivalent or more efficient LLVM IR.

Also, regarding Write, it would be possible to remove a few more unsafes, but I will exclude them from this PR as I will be refactoring the entire write module soon.

ref: https://users.rust-lang.org/t/zerompk-extremely-fast-messagepack-serializer-for-rust/139108/5?u=nuskey8

@nuskey8 nuskey8 merged commit 5086d75 into main Mar 23, 2026
@nuskey8 nuskey8 deleted the chore/remove-unnecessary-unsafe branch March 23, 2026 14:36
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