Re: Speed: sprintf vs. & operator

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

On Tue, 7 Jan 2003 12:00:26 -0500, Robert Craig
<rds at RapidEuphoria.com> wrote:

>In Euphoria 2.4 alpha, the following runs 2.6x faster=20
>than it does in 2.3...
>
>     fullName =3D fn & " " & mn & " " & ln

Is that 2.3 running on your old PC? blink
Nice one Rob! How on earth did you manage that?

jc, if you really need it, you can get an additional 20% improvement
in 2.3 with:

 fullName =3D fn & SP
 fullName &=3D mn
 fullName &=3D SP
 fullName &=3D ln

As this takes better advantage of some optimisations in the 2.3
interpreter. I expect both forms will be the same speed in 2.4

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu