comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » float function unexpectedly slow
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: float function unexpectedly slow [message #88028 is a reply to message #88026] Wed, 12 March 2014 17:45 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, March 12, 2014 8:31:19 PM UTC-4, timoth...@gmail.com wrote:
> On Thursday, March 13, 2014 11:25:46 AM UTC+11, Craig Markwardt wrote:
>
>> On Wednesday, March 12, 2014 7:56:44 PM UTC-4, timoth...@gmail.com wrote:
>
>>
>
>>> Anyway to get to the point one thing I have discovered this morning is that the built in float() function seems to be unexpectedly slow.
>
>>
>
>>
>
>>
>
>> When I try your sample code on my iMac and Linux machine (both x86_64), both Python and IDL are about the same speed. In fact for me IDL is 3-10% faster!
>
>>
>
>>
>
>>
>
>> Craig
>
>
>
> Hmm interesting. Just out of curiosity what kind of CPU do you have and how many cores does it have?
>
>
>
> The IDL documentation says: This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs.
>
>
>
> I have 6 cores maybe its costing more time than its saving with that many cores.
>
>
>
> The other question would be what version of python and idl are you using? I'm using IDL 8.2 and Python 3.2.2 on Windows 64-bit

Mac:
IDL> print, !version, !cpu
{ x86_64 darwin unix Mac OS X 7.1 Apr 21 2009 64 64}{ 0
0 2 2 100000 0
}


Linux:
IDL> print, !cpu, !version
{ 0 0 4 4 100000
0}{ x86_64 linux unix linux 8.1 Mar 9 2011 64 64
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: stregex fails to match underscore
Next Topic: XML to Configure IDL Programs?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:59:32 PDT 2025

Total time taken to generate the page: 0.96128 seconds