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

List:       kde-devel
Subject:    Re: ignoreCase in KCompletion
From:       Christian Schaarschmidt <schaarsc () gmx ! de>
Date:       2006-11-15 18:14:28
Message-ID: 200611151914.28194.schaarsc () gmx ! de
[Download RAW message or body]

Am Dienstag, 14. November 2006 00:09 schrieb Carsten Pfeiffer:
> On Monday 13 November 2006 22:28, you wrote:
>

Hi Carsten,

>
> I see, you're right. Using findAllCompletions() as suggested in your patch
> should fix this, but does a little more than necessary (AutoCompletion only
> needs to return a single string). One could optimize this by providing a
> method like findCompletion(), but honoring myIgnoreCase (similar to
> extractStringsFromNodeCI() for example.
>
> Do you want to have a go at that?

I have tried that. But it didn't work...and it became rather complex.
On the other hand, I don't think that we gain much, performancewise.
If all the items have the same weight all possible paths need to be traversed 
to find the "best" match within a path.  then the results have to be joined 
and the "best of the best" picked and returned. 
This is (more or less) what findAllCompletions does ... 

Is there a problem if all matches are looked up, even if only one is required?

Regards
Christian
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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