Skip to content

light-player/lp-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lp-common

Shared utilities for the Light Player compiler stack (cranelift, regalloc, RISC-V tools).

Crates

lp-collection

Embedded/low-memory friendly collections that allocate in small chunks to reduce OOM risk from heap fragmentation:

  • ChunkedVec - Vector backed by multiple smaller allocations instead of one large contiguous block
  • ChunkedHashMap - Hash map with fixed 64 buckets, each backed by a ChunkedVec

Used by regalloc2 (fastalloc) and cranelift-codegen (VCode).

Versioning

Releases are automated via release-plz using conventional commits:

  • fix: -> patch (1.0.0 -> 1.0.1)
  • feat: -> minor (1.0.0 -> 1.1.0)
  • feat!: or BREAKING CHANGE -> major (1.0.0 -> 2.0.0)

Usage

Add as a git dependency:

lp-collection = { git = "https://github.com/light-player/lp-common", branch = "main" }
# or pin to a release:
lp-collection = { git = "https://github.com/light-player/lp-common", rev = "v1.0.0" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages