Closed heri16 closed 1 year ago
@heri16 are you sure it's really needed? I don't think the operation take a lot of time
from rustler docs:
For functions that may take some time to return - let's say more than 1 millisecond - it is
/// recommended to use the `schedule` flag. This tells the BEAM to allocate that NIF call
/// to a special scheduler. These special schedulers are called "dirty" schedulers.
Agreed with @ayrat555, all the operations here are super fast
Should we add?
#[rustler::nif(schedule = "DirtyCpu")]