[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Exported constants not inlined?



Gurusamy Sarathy writes:
> 
> On Wed, 26 Jan 2000 13:20:39 GMT, Matt Sergeant wrote:
> >I was under the impression that constant functions got converted to
> >constants at compile time. Yet when running Devel::DProf on some code I
> >noticed my constants were being called as ordinary functions. Is this
> >because I've got them in a separate Exporter module, and if so - can this
> >be fixed somehow (preferably without explicitly specifying the full package
> >name)?
> 
> IIRC, the constant function optimization doesn't happen under the -d
> switch (which DProf uses).

Probably wrong.  I hope that DProf sets $^P (sp?) to a meaningful value.

Ilya


References to:
Gurusamy Sarathy <gsar@ActiveState.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]