haubie / midiex

Cross platform Midi library in Elixir. Powered by midir, a Rust midi library and Rustler.
MIT License
8 stars 4 forks source link

high cpu load on linux #6

Open crop2000 opened 2 months ago

crop2000 commented 2 months ago

I just tried your library and fully occupied one core. i wonder if this line is the cause: https://github.com/haubie/midiex/blob/61e9f16871d494cf7262d653a1b8913cc59007d6/native/midiex/src/lib.rs#L247-L249 don't you have this problem on your system?

7 solves the issue for me.

haubie commented 2 months ago

Thanks @crop2000 for identifying the issue and the pull request fix.

I haven't noticed the issue before (I'm on Mac OS).

I'll need to do some testing to see if this is a linux specific issue or not. I'm currently working on updating some of the dependencies to a more recent version and will test this as part of update.