Re: object replication

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

Michael,

It is perfectly good Euphoria, and better readable, to write:
result =3D repeat(repeat(0, 12), 1500))

>I think the reason for the first routine performing so badly was
inefficient
>programming technique. I had been appending the entire resultant sequenc=
e
>together, say, 1500 * 12 appendations(including piecing of name strings
>together) . But my second routine declared space first (in a manner of
>speaking), ie:

>sequence result
>result=3Drepeat({0,0,0,0,0,0,0,0,0,0,0,0},1500)

>and then various direct assignments were made to it.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu