Delay in program start w/HASHED_DICTIONARY usage

Jeremy @ Cowgar jeremy at cowgar.com
Fri Jul 31 13:14:00 UTC 2009


Hello Xavier,

  Further,  why a 1-2 second delay just to create a hashed dictionary?
  Even  if  it were not dead code, there shouldn't be such a noticeable
  delay.

Jeremy
mailto:jeremy at cowgar.com

============
Friday, July 31, 2009, 9:08:56 AM, you wrote:

> 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 ?




More information about the Lisaac-devel mailing list