⚓ Oxc Memory Allocator
Oxc uses a bump-based memory arena for faster AST allocations.
This crate contains an [Allocator] for creating such arenas, as well as ports of data types
from std adapted to use this arena:
- [
Box] - [
Vec] - [
String] - [
HashMap]
See [Allocator] docs for information on efficient use of [Allocator].
Features
-
serialize- Enables serialization support for [Box] and [Vec] withserdeandoxc_estree. -
from_raw_parts- Adds [Allocator::from_raw_parts] method. Usage of this feature is not advisable, and it will be removed as soon as we're able to.