On Sep 24, 2009, at 2:50 PM, Lisandro Dalcin wrote: > Sorry, I was not clear enough... if 'profile' directive is of type > 'bool', but initialized to None, it seems that at some point Dag's > transform machinery puts a 'False' there,
Ah. > so the > "directives['profile'] is None" does not work as expected... > > So, in short, the 'profile' directive should be 'False' by default; > but if enabled, the macro in the C code should definitely default to > 1, as currently done. Actually, None (the default) was a special case--enabled for non- inline non-nogil functions. It requires the GIL, so we need that at least, and I disabled it for inline functions for performance reasons. Maybe rather than True/False, it should be an int with different thresholds? If so, what should they be? Should any level be on by default? (I think so.) - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
