Re: speed question to Rob
- Posted by Robert Craig <rds at ATTCANADA.NET> Sep 19, 1999
- 529 views
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

