Skip to content

Conversation

@jplatte
Copy link
Member

@jplatte jplatte commented Jan 1, 2026

Reduces memory usage without impacting performance of my simple vfs-building benchmark.

Before:

calls to allocation functions: 3.000.710
peak heap memory consumption: 74,7MB

Benchmark 1: moss -D /mnt/aerynos state build-vfs
  Time (mean ± σ):     411.1 ms ±   2.2 ms    [User: 381.8 ms, System: 27.0 ms]
  Range (min … max):   407.3 ms … 417.8 ms    40 runs

After:

calls to allocation functions: 3.000.710
peak heap memory consumption: 62,7MB

Benchmark 1: moss -D /mnt/aerynos state build-vfs
  Time (mean ± σ):     412.3 ms ±   2.9 ms    [User: 385.9 ms, System: 26.3 ms]
  Range (min … max):   408.5 ms … 420.9 ms    40 runs

@jplatte jplatte marked this pull request as ready for review January 1, 2026 23:54
Copy link
Contributor

@tarkah tarkah left a comment

Choose a reason for hiding this comment

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

Lgtm. Would love some benchmarking numbers posted before we merge.

@jplatte jplatte merged commit 6c543a2 into main Jan 2, 2026
2 checks passed
@jplatte jplatte deleted the jplatte/thin-arc branch January 2, 2026 00:04
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.

3 participants