Re: Slow memory allocation

new topic     » goto parent     » topic index » view thread      » older message » newer message

>From: Haflidi Asgrimsson <guest at RapidEuphoria.com>
>Reply-To: EUforum at topica.com
>To: EUforum at topica.com
>Subject: Re: Slow memory allocation
>Date: Sun, 12 Jun 2005 14:17:17 -0700
>
>posted by: Haflidi Asgrimsson <haflidi at prokaria.com>
>
>As with all other interpreters the more information you give the more
>efficiently it runs the code.
>I think I've learned a valuable lesson here:
>constant TAB = 9 is bad
>constant TAB = '9' is OK
>constant TAB = "9" is OK
>

   Those last two are not correct. They just mean the number 9, not a TAB 
character. If you're splitting by 9's and not TAB's, then maybe you aren't 
splitting anything at all, thereby making it seem faster. The constants 
should be like this:
constant TAB = '\t'
or
constant TAB = "\t"

~[ WingZone ]~
http://wingzone.tripod.com/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu