Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-alloc more crates #6078

Merged
merged 11 commits into from
Feb 10, 2025
Merged

no-alloc more crates #6078

merged 11 commits into from
Feb 10, 2025

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Feb 6, 2025

#6076

This no-allocs everything except for crates that use:

  • Cow
  • ZeroMap

@robertbastian robertbastian force-pushed the alloc branch 12 times, most recently from dee71ce to 435308d Compare February 9, 2025 12:15
@robertbastian robertbastian changed the title icu_properties no-alloc no-alloc more crates Feb 9, 2025
@robertbastian robertbastian marked this pull request as ready for review February 10, 2025 10:31
Manishearth
Manishearth previously approved these changes Feb 10, 2025
}

// This is mostly just a `Cow<[u8]>`, safe to implement Send and Sync on
unsafe impl<'a, V: ?Sized> Send for VarZeroCow<'a, V> {}
unsafe impl<'a, V: ?Sized> Sync for VarZeroCow<'a, V> {}

#[cfg(feature = "alloc")]
Copy link
Member

Choose a reason for hiding this comment

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

thought: clone can technically work in no-alloc

@robertbastian robertbastian merged commit ee2814e into unicode-org:main Feb 10, 2025
28 checks passed
@robertbastian robertbastian deleted the alloc branch February 10, 2025 15:05
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