[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Gforth image files and shared c librarys! How to access?

From: Anton Ertl
Subject: Re: [gforth] Gforth image files and shared c librarys! How to access?
Date: Tue, 3 Sep 2013 17:14:31 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Sep 02, 2013 at 05:16:57PM -0600, Philip Smith wrote:
>    I have done some testing to see the speed benefit of precompiled images
> and i find that there is up to 200 times speed benefit for some of my
> testing code.

Could you make that testing code available.  I find this difference
amazing.  The basic difference is that with an image you don't need to
compile from source to threaded code, everything else is pretty much
the same; and unless you have huge programs, the compile time is
short; it may be noticable if you call the same script many times in a
row, and it is very fast at executing.

Ok, you can always slow it down by doing some execution during
loading, but otherwise, I would be surprised if this is a problem.

In any case, you can work around this limitation by dividing the
program in a part that goes into the image and a part the does not;
you do the slow parts during image generation and do the shared
library linking in the non-image part.  I think after the first time
the shared library linking is not slow.

- anton

reply via email to

[Prev in Thread] Current Thread [Next in Thread]