[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Modes
From: Sebastian Pipping <webmaster () hartwork ! org>
Date: 2007-07-06 21:38:24
Message-ID: 468EB650.2060907 () hartwork ! org
[Download RAW message or body]
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.
Sebastian
_______________________________________________
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