Skip to content

Commit

Permalink
switch back to atomic-arena
Browse files Browse the repository at this point in the history
using u16s instead of usizes for keys no longer has a performance benefit
  • Loading branch information
tesselode committed Dec 30, 2024
1 parent e971627 commit 2b76de2
Show file tree
Hide file tree
Showing 30 changed files with 73 additions and 1,064 deletions.
4 changes: 2 additions & 2 deletions crates/benchmarks/benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn sounds(c: &mut Criterion) {
// a simple test case where many sounds are being played at once
c.bench_function("simple", |b| {
const SAMPLE_RATE: u32 = 48_000;
const NUM_SOUNDS: u16 = 5000;
const NUM_SOUNDS: usize = 5000;
let mut manager = AudioManager::<MockBackend>::new(AudioManagerSettings {
backend_settings: MockBackendSettings {
sample_rate: SAMPLE_RATE,
Expand All @@ -50,7 +50,7 @@ fn sounds(c: &mut Criterion) {
// impact on the performance
c.bench_function("with on_start_processing callback", |b| {
const SAMPLE_RATE: u32 = 48_000;
const NUM_SOUNDS: u16 = 5000;
const NUM_SOUNDS: usize = 5000;
let mut manager = AudioManager::<MockBackend>::new(AudioManagerSettings {
backend_settings: MockBackendSettings {
sample_rate: SAMPLE_RATE,
Expand Down
1 change: 1 addition & 0 deletions crates/kira/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ readme = "../../README.md"

[dependencies]
assert_no_alloc = { version = "1.1.2", optional = true }
atomic-arena = "0.1.1"
glam = { version = "0.29.0", features = ["mint"] }
mint = "0.5.9"
paste = "1.0.14"
Expand Down
285 changes: 0 additions & 285 deletions crates/kira/src/arena.rs

This file was deleted.

Loading

0 comments on commit 2b76de2

Please sign in to comment.