Re: Replace, ReplaceAll and If time performace comparition
- To: mathgroup at smc.vnet.net
- Subject: [mg127079] Re: Replace, ReplaceAll and If time performace comparition
- From: Christoph Lhotka <christoph.lhotka at fundp.ac.be>
- Date: Fri, 29 Jun 2012 04:48:09 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201206240826.EAA08423@smc.vnet.net> <201206250801.EAA15438@smc.vnet.net> <jseetb$i34$1@smc.vnet.net> <201206280802.EAA29098@smc.vnet.net>
Hi,
congratulations!
It strikes the performance of Clip on my machine by a factor of 2
(instead of
a factor of 1.45 as published in my previous post).
Does it mean, that Compile + Map + raw functions is a good combination
to speed up codes?
Question: Can anyone explain, why RuntimeOptions->"Speed" does not
improve the performance?
Thanks for your code,
Christoph
On 06/28/2012 10:02 AM, awnl wrote:
> Hi,
>
>> Can anyone top the result?
> contradicting to my announcement, I tried anyway and found this to be
> considerably faster on my machine:
>
> cf3 = Compile[{{list, _Integer, 1}},
> Map[If[# > 0, #, 0] &, list],
> CompilationTarget -> "C"
> ]
>
> hth,
>
> albert
>
- References:
- Replace, ReplaceAll and If time performace comparition
- From: Murta <rodrigomurtax@gmail.com>
- Re: Replace, ReplaceAll and If time performace comparition
- From: Andrzej Kozlowski <akozlowski@gmail.com>
- Re: Replace, ReplaceAll and If time performace comparition
- From: awnl <awnl@gmx-topmail.de>
- Replace, ReplaceAll and If time performace comparition