<div dir="ltr"><div class="gmail_extra">My trivial bench shows that your code is best:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://gist.github.com/maxlapshin/e7a18c997a6bac555171">https://gist.github.com/maxlapshin/e7a18c997a6bac555171</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">







<p class="">./bench.erlĀ </p>
<p class="">native: 2015-03-21T17:30:57Z</p>
<p class="">nif: 2015-03-21T17:30:57Z</p>
<p class="">erlang: 2015-03-21T17:30:57Z</p>
<p class="">native: 6</p>
<p class="">nif: 2</p>
<p class="">erlang: 0</p><p class=""><br></p><p class=""><br></p><p class=""><br></p><p class="">Will check it in real load, thanks.</p><p class=""><br></p></div></div>