<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>Analyzing the project fast_tls by processone (<a href="https://github.com/processone/fast_tls/blob/master/c_src/fast_tls_drv.c">https://github.com/processone/fast_tls/blob/master/c_src/fast_tls_drv.c</a>)  it raised me a question:<br><br></div>From what I know the NIF is the fastest way to call c/c++ code from erlang. The disadvantage is that you need to return in under 1 ms in order to make sure the schedulers are not affected.<br><br></div>using erl_driver and  port_control is not the same ? because based on the documentation this is a sync call that blocks scheduler until the native method returns. <br><br></div>I'm wrong or not ? <br><br></div>Silviu<br></div>