Skip to content

perf(lattice): singleton TypeId cache + scratch reuse in atom-pair ops - #2

Merged
azjezz merged 2 commits into
mainfrom
perf-lattice
May 2, 2026
Merged

azjezz merged 2 commits into
mainfrom
perf-lattice

Conversation

@azjezz

@azjezz azjezz commented May 2, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: azjezz <azjezz@protonmail.com>
@codspeed

codspeed Bot commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 32.41%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 102 improved benchmarks
❌ 14 regressed benchmarks
✅ 358 untouched benchmarks
⏩ 1 skipped benchmark1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ is_int_named_object 306.1 ns 276.9 ns +10.53%
⚡ is_string_wide_union 276.9 ns 247.8 ns +11.77%
⚡ keyed_array_payload 11.7 µs 9.3 µs +25.82%
⚡ named_object_to_bool 4.3 µs 2.9 µs +49.46%
⚡ keyed_array_payload_to_bool 4 µs 2.7 µs +48.39%
⚡ wide_union_to_object 25.8 µs 17.9 µs +44.32%
⚡ is_array_wide_union 306.4 ns 277.2 ns +10.52%
⚡ wide_minus_singleton 92.7 µs 49.3 µs +87.77%
⚡ identity 856.4 ns 739.7 ns +15.77%
⚡ tiny_to_string 6.3 µs 5.1 µs +24.18%
⚡ small_union_to_int 5.9 µs 5.3 µs +11.11%
⚡ wide_union_to_array 25.3 µs 17.7 µs +43.01%
⚡ singleton 182.5 ns 153.3 ns +19.02%
⚡ single 3,008.9 ns 912.5 ns ×3.3
⚡ deep_nested_to_bool 4 µs 2.7 µs +47.3%
⚡ named_object_to_object 4.2 µs 2.8 µs +51.08%
⚡ deep_nested_to_object 5.7 µs 4.3 µs +34.24%
⚡ tiny_to_object 5.7 µs 4.3 µs +34.47%
⚡ named_object_to_array 5.1 µs 3.8 µs +35.52%
⚡ named_object_to_float 4 µs 2.7 µs +47.36%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Comparing perf-lattice (c50f051) with main (a076a63)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@azjezz
azjezz merged commit 7095220 into main May 2, 2026
7 of 8 checks passed
@azjezz
azjezz deleted the perf-lattice branch May 2, 2026 20:31
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.

1 participant