<div dir="ltr"><div class="gmail_extra">I've made following:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">{function, bin, 1, 2}.</div><div class="gmail_extra"> {label,1}.</div>
<div class="gmail_extra"> {line,[{location,"alloc.erl",4}]}.</div><div class="gmail_extra"> {func_info,{atom,alloc},{atom,bin},1}.</div><div class="gmail_extra"> {label,2}.</div><div class="gmail_extra"> {line,[{location,"alloc.erl",5}]}.</div>
<div class="gmail_extra"> bs_init_writable.</div><div class="gmail_extra"> return.</div><div><br></div><div><br></div><div style>It shows excelent results on syntetic tests, but when I run real code, binary doesn't remain the same, but I'm only appending.</div>
<div style><br></div><div style>Perhaps, this zerocopy magic will work only if compiler generates bs_private_append instructions?</div><div style><br></div></div></div>