Execute in place?

2002-10-25 Thread Rhys Weatherley
I was just having a look at the packfile format code, and I have a suggestion on load-time performance of the code segment. Currently, you read the file, parse out the various sections, copy them elsewhere in memory, and byte-swap as necessary. The overhead of doing this could be quite

Re: Execute in place?

2002-10-25 Thread Nicholas Clark
On Fri, Oct 25, 2002 at 09:15:07PM +1000, Rhys Weatherley wrote: A trick that I've found very useful in the past is to design the bytecode format so that it can be mmap'ed into a block of memory, and then executed almost immediately with the minimum number of fixups. Rather than copying the

Re: Execute in place?

2002-10-25 Thread Dan Sugalski
At 9:15 PM +1000 10/25/02, Rhys Weatherley wrote: I was just having a look at the packfile format code, and I have a suggestion on load-time performance of the code segment. Currently, you read the file, parse out the various sections, copy them elsewhere in memory, and byte-swap as necessary.