HomePhorge

refactor: remove lazy_static
dc1163351176Unpublished

Unpublished Commit · Learn More

  • Repository Importing: This repository is still importing.
  • Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

refactor: remove lazy_static

once_cell has now been merged into rust core. This removes the
lazy_static dependency and migrates over to the built in OnceLock.

Its always good to remove dependencies where possible, this also give us
a preference for the built in OnceLock

Benchmark 1: chore: add benchmark for `set_items`
  Time (mean ± σ):      6.327 s ±  0.199 s    [User: 15.316 s, System: 1.323 s]
  Range (min … max):    6.087 s …  6.712 s    10 runs

Benchmark 2: refactor: remove lazy_static
  Time (mean ± σ):      6.171 s ±  0.251 s    [User: 15.223 s, System: 1.382 s]
  Range (min … max):    5.910 s …  6.776 s    10 runs

Summary
  'refactor: remove lazy_static' ran
    1.03 ± 0.05 times faster than 'chore: add benchmark for `set_items`'

Details

Provenance
AdeAttwoodAuthored on Oct 22 2023, 3:14 PM
Parents
R1:7447d485931e: chore: add benchmark for `set_items`
Branches
Unknown
Tags
Unknown

Event Timeline