Re: vector of bin indices using histogram? [message #50744] |
Thu, 19 October 2006 00:45  |
Paolo Grigis
Messages: 171 Registered: December 2003
|
Senior Member |
|
|
Jean H. wrote:
>> intel pentium 4 (idl 6.2):
>>
>> p=fltarr(5d7)
>> t=systime(1) & b=p*.5 &print,systime(1)-t
>> 0.33394289
>> t=systime(1) & b=p/2. &print,systime(1)-t
>> 0.82017112
>>
>> Ratio: 2.5
>
>
> IDL> p=fltarr(5d7)
> IDL> t=systime(1) & b=p*.5 &print,systime(1)-t
> 0.23399997
> IDL> t=systime(1) & b=p/2. &print,systime(1)-t
> 0.25000000
> .... ratio = 1.06 here... Pentium 4, windows XP pro, idl 6.3
> I guess the operating system has some influence too?!
Somehow it looks like that under windows the division
is optimized away, whereas under linux it is not...
I guess that this is one of the reasons why IDL is faster
under windows than linux.
Ciao,
Paolo
>
> Jean
|
|
|