Re: Speed: sprintf vs. & operator

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

On Tue, 7 Jan 2003 14:40:53 -0500, Robert Craig
<rds at RapidEuphoria.com> wrote:

>In 2.4, to speed things up, the interpreter and translator do:
>   =20
>   x =3D a & b & c & d & ...
>
>In *one* step, allocating space for the *final* result x,
>then copying the data for a, b, c, d, ... *once* each.
>So instead of allocating space multiple times,
>it's done once. And instead of copying some of the input data
>multiple times (in effect), each input is copied *once* to the
>final destination.

That is so blindingly obvious it is terrifying.
Like everyone else, I may well have 20:20 hindsight sometimes,
but that thar above ain't nothing but dainty

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu