Re: Replace, ReplaceAll and If time performace comparition

*To*: mathgroup at smc.vnet.net*Subject*: [mg127096] Re: Replace, ReplaceAll and If time performace comparition*From*: awnl <awnl at gmx-topmail.de>*Date*: Sat, 30 Jun 2012 05:16:14 -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> <jsjq44$ct6$1@smc.vnet.net>

Hi, > Does it mean, that Compile + Map + raw functions is a good combination > to speed up codes? It looks like yes. What you should have in mind is that Compile does transform Mathematica code to something else (with CompilationTarget -> "C" to C). The speedup depends a lot on how well optimized the generated code is. I think the general rule is that constructs which are less general and easier to analyze will be easier to optimize and thus have a greater chance to be translated to something efficient. As we don't know which transformation rules the code generator uses, it will always need some experimenting, though. 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>