Skip to content

[perf] Perf experiments#743

Closed
Veykril wants to merge 5 commits intosalsa-rs:masterfrom
Veykril:veykril/push-xtnrlstsrzrq
Closed

[perf] Perf experiments#743
Veykril wants to merge 5 commits intosalsa-rs:masterfrom
Veykril:veykril/push-xtnrlstsrzrq

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Mar 2, 2025

No description provided.

@netlify
Copy link

netlify bot commented Mar 2, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 0283619
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/67c989875226180008247b2b

@Veykril Veykril changed the title Things Small perf things Mar 2, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 2, 2025

CodSpeed Performance Report

Merging #743 will improve performances by 6.45%

Comparing Veykril:veykril/push-xtnrlstsrzrq (0283619) with master (9d2a978)

Summary

⚡ 1 improvements
✅ 10 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
many_tracked_structs 36.4 µs 34.2 µs +6.45%

@Veykril Veykril force-pushed the veykril/push-xtnrlstsrzrq branch from 97035cb to 9e2a27a Compare March 2, 2025 09:41
Comment on lines 22 to 18
syncs: RwLock<Vec<Option<SyncState>>>,
syncs: Mutex<Vec<Option<SyncState>>>,
Copy link
Member Author

Choose a reason for hiding this comment

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

We aren't using the read-half of the RwLock

@Veykril Veykril force-pushed the veykril/push-xtnrlstsrzrq branch 2 times, most recently from 3701de8 to 63c14c6 Compare March 2, 2025 12:56
@Veykril Veykril changed the title Small perf things Perf experiments Mar 2, 2025
@Veykril
Copy link
Member Author

Veykril commented Mar 2, 2025

Oof 85a3ff2 makes quite a difference, the event system is certainly not free as it requires us to thread a dyn database handle to a bunch of places just for the event reporting.

I wonder if it would be better to have an API that lets you install an event hook into Zalsa.

@Veykril Veykril changed the title Perf experiments [perf] Perf experiments Mar 5, 2025
@Veykril Veykril force-pushed the veykril/push-xtnrlstsrzrq branch from 85a3ff2 to f0054dc Compare March 6, 2025 11:37
@Veykril Veykril force-pushed the veykril/push-xtnrlstsrzrq branch from f0054dc to 0283619 Compare March 6, 2025 11:39
@Veykril Veykril closed this Mar 26, 2025
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