Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Thu, Oct 16, 2003 at 06:34:54PM +0200, Jean-Marc Lasgouttes wrote:
>> >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
>> 
>> Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes about
>> Andre> 20% of the time used by lyx startup + UserGuide loading.
>> 
>> Andre> This does not seem right.
>> 
>> Indeed.
>> 
>> Andre> Does anybody feel a bit guilty?
>> 
>> Could you show us the corresponding calling tree (later in the gprof
>> report)?
>
| I better show you the fix.
>
| Setting up the patterns just one cuts this from 20% down to 2.1%.

Right. The regex machinery is compiling the regex stirng into a state
machine, so this should only be done once (static).

-- 
        Lgb

Reply via email to