[PATCH] speedup in KMimeTypeFactory?

Matt Rogers mattr at kde.org
Sun Oct 19 04:37:57 BST 2008


Hi,

The attached patch makes some changes to the matchFileName function in 
kmimetypefactory.cpp which gets called a lot, especially when browsing files 
in the file manager when trying to open a file. 

Depending on how you read the callgrind output, it's either a 5% (incl. 
column) speedup or a 0.5% (self column) speedup. I can't remember which is the 
more important number.

The testcase used was starting kate and browsing for a file to open and then 
letting kate completely open that file. 

Feedback wanted.
-- 
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mimetype_speedup.patch
Type: text/x-patch
Size: 1538 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081018/94463500/attachment.bin>


More information about the kde-core-devel mailing list