On Friday, January 15, 2016 at 3:36:24 PM UTC-8, Travis Scrimshaw wrote: > > In the interest of speed, to avoid calls to `sys,platform`, I would make > foo a (module level) @lazy_attribute or @cached_function. IMO a full class > is a lot more than you need. > > According to https://docs.python.org/2/library/sys.html#sys.platform sys.platform is already a string. Are you worried about the overhead of the two dictionary lookups to find the value of the global "sys" and then of "platform" in its namespace? I'd be surprised if any kind of function call can compete with that.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.