Re: speed question to Rob

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

Tapani writes:
> Is a=DataA[1] faster than b=DataB[1][1] ?
> atom a,b
> sequence DataA,DataB
> DataA={1,2}
> DataB={{1,2},{1,2}}
> a=DataA[1]
> b=DataB[1][1]

Yes, you can assume that subscripting once will
take about half the time of subscripting twice.
In theory, with constant sequences and constant
subscripts I could optimize things, but currently I don't.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu