<div dir="auto">We did reuse the snmp application's implementation at first but profiling showed us that 98% of the total time was spent doing the one million iterations required to generate a hash and was taking over 100ms each time. Moving to a NIF on the same hardware reduced it to less than 10ms.<div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2019, 10:23 PM Max Lapshin <<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why do you need to write nif here?</div>
</blockquote></div>