Very strange - I think you'll have to post a bit more code in order to debug this. 5 minutes is a very long time (unless you have a very very slow machine) - can you isolate the problem into a smaller test case that reproduces the problem?<div>
<br></div><div>Cheers</div><div><br></div><div>/Joe<br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 7:18 PM, Richard Evans <span dir="ltr"><<a href="mailto:richardprideauxevans@gmail.com" target="_blank">richardprideauxevans@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:x-small">encode({load_instance_from_binary, GameIndex, BinaryBlock}) -></span><span style="font-family:arial,sans-serif;font-size:x-small"> </span><br>
<span style="font-family:arial,sans-serif;font-size:x-small">    </span><span style="font-family:arial,sans-serif;font-size:x-small">Result = lists:append([[?SERVER_INSTRUCTION_LOAD_INSTANCE_FROM_BINARY | convertToFourBytes(GameIndex)], convertToFourBytes(byte_size(BinaryBlock)), </span></blockquote>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:x-small">binary:bin_to_list(BinaryBlock) <- this line is unecessary</span></blockquote>
<div>replace with BinaryBlock </div><div>lists get flattened on output so you can just</div><div>add the binary "as is" without conversion to a list</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="font-family:arial,sans-serif;font-size:x-small">]),</span><br><span style="font-family:arial,sans-serif;font-size:x-small">    </span><span style="font-family:arial,sans-serif;font-size:x-small">Result.</span></blockquote>
</div><br></div>