[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Modes
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2007-07-06 21:41:15
Message-ID: 200707062341.15417.dhdev () gmx ! de
[Download RAW message or body]

On Friday 06 July 2007, Sebastian Pipping wrote:
> Dominik Haumann wrote:
> > In other words: we have 140 * (count of wildcards per file) regular
> > expressions for every opened file. Starting a session with 14 files
> > the regular expression takes roughly 65% of the kate startup process.
> >
> > How do we fix that? We have to check the wildcards after all to figure
> > out which mode we have to load... ;)
>
> -----------------------------------------------------------
> Assuming all the wildcards are plain file extensions like
> "*.css" and not generic filters like ".bash*" that code
> could be changed to an extension-to-mode map. That would
> do binary instead of linear search. The map has to be build
>from the filters only once.

That's not the case, especially because the user also can change this 
dynamically ;)

Dominik
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic