Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: Slow to load #37

Closed
PallHaraldsson opened this issue Jan 28, 2021 · 1 comment
Closed

FYI: Slow to load #37

PallHaraldsson opened this issue Jan 28, 2021 · 1 comment

Comments

@PallHaraldsson
Copy link

I tried to see if faster than dancasimiro/WAV.jl#96 and neither faster than Python/scypi (also likely GC issue):

julia> @time using FileIO: load, save, loadstreaming, savestreaming
  0.421023 seconds (430.05 k allocations: 28.250 MiB, 2.66% gc time, 25.76% compilation time)

julia> @time using FileIO: load, save, loadstreaming, savestreaming
  0.000145 seconds (81 allocations: 6.062 KiB)

julia> @time import LibSndFile
  2.951508 seconds (3.38 M allocations: 211.385 MiB, 5.84% gc time)

julia> @time import LibSndFile
  1.137657 seconds (667.89 k allocations: 37.415 MiB, 2.50% gc time, 99.99% compilation time)

julia> @time import LibSndFile
  0.000129 seconds (81 allocations: 6.062 KiB)

julia> @time x = load("test.wav");
  1.406329 seconds (1.71 M allocations: 290.732 MiB, 5.59% gc time, 12.73% compilation time)

julia> @time x = load("test.wav");
  0.368146 seconds (85 allocations: 190.740 MiB, 64.69% gc time)

julia> @time x = load("test.wav");
  0.152421 seconds (85 allocations: 190.740 MiB, 9.59% gc time)

julia> @time x = load("test.wav");
  0.145860 seconds (85 allocations: 190.740 MiB, 10.45% gc time)

See the other issue. Could be enough to fix there.

@rob-luke
Copy link
Member

Optimisation improvements are always welcome via a PR. Thanks for reporting

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

No branches or pull requests

2 participants