Delay in program start w/HASHED_DICTIONARY usage
Xavier Oswald
xoswald at gmail.com
Fri Jul 31 13:08:56 UTC 2009
On 09:00 Fri 31 Jul , Jeremy @ Cowgar wrote:
> Hello Lisaac,
>
> With a simple Hello World program, running it is nearly instant.
> However, if you add a HASHED_DICTIONARY to the bunch, you get a 1-2
> second delay when running a hello world program. Why is that?
>
> Here is code that exposes the delay:
>
> Section Header
> + name := HELLO_WORLD;
>
> Section Inherit
> - parent:OBJECT := OBJECT;
>
> Section Public
> - main <-
> ( + d:HASHED_DICTIONARY(ABSTRACT_STRING, ABSTRACT_STRING);
> d := HASHED_DICTIONARY(ABSTRACT_STRING, ABSTRACT_STRING).create;
>
> "Hello, World!".println;
> );
That's strange since the compiler should consider it as a dead code and just
print "hello world"
@Benoit, ca you comment ?
--
,''`. ** Xavier Oswald <xoswald at debian.org>
: :' : ** Research Engineer
`. `' ** GNU/LINUX Debian Developer (http://debian.org)
`- ** Isaac Project Developer (http://isaacproject.u-strasbg.fr/)
More information about the Lisaac-devel
mailing list