oxc_allocator 0.75.1

A collection of JavaScript tools written in Rust.
Documentation

⚓ 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] with serde and oxc_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.