ArteMisc / libsalty

Elixir bindings for libsodium (NIF)
Apache License 2.0
21 stars 25 forks source link

Dirty Schedulers? #15

Closed mpope9 closed 5 years ago

mpope9 commented 5 years ago

I see that there is the DIRTY macro defined but never used. Does this actually use ERL_NIF_DIRTY_JOB_CPU_BOUND?

mpope9 commented 5 years ago

I see:

SALTY_MAX_CLEAN_SIZE is the maximum amount of bytes a nif call can process
 * before we should consider invoking the dirty schedulers.

Just curious why you wouldn't use dirty schedulers by default?

mpope9 commented 5 years ago

Ahh, just read up more on libsodium and dirty schedulers, and it'd probably take more time to dirty schedule than to execute. Closing this issue.