[Rd] Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions

Joshua Wiley jwiley.psych at gmail.com
Sun Oct 2 01:52:36 CEST 2011


On Sat, Oct 1, 2011 at 3:14 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> On 11-10-01 5:14 PM, Dominick Samperi wrote:
[snip]
>> Except that namespace::foo should be assigned to another local
>> variable instead of using package::foo in a tight loop, because
>> repeated calls to "::" can introduce a significant performance
>> penalty. (This has been discussed in another thread.)
>
> That's good advice too.
>
> Duncan Murdoch

Is this performance hit the sort of thing that byte compiling would
help with, or am I misunderstanding its use?



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-devel mailing list