Stupid optimization hacks: Instead of keeping the limit in a register, keep limit - 512 in a register. Now, when ever you are going to do a check to see if there is enough space, if you want 512 bytes or less, just check the frontier against the limit - 512. This might cause you to GC 512 bytes early, but who cares. A stupid hack, but perhaps worth while.