State of mmap for icon cache
    Benjamin Meyer 
    ben at meyerhome.net
       
    Tue Jun 17 22:08:59 BST 2008
    
    
  
> I can reproduce it, without caching the icons ourselves, code  
> completion takes
> several seconds to populate (this is happening in a worker thread),  
> whereas
> with the fix, it's instantaneous.
Just curious, why does code completion have pixmaps?  If you are using  
QCompleter you might want code like this:
        m_lineEditCompleter = new QCompleter(completionModel, this);
        QAbstractItemView *popup = m_lineEditCompleter->popup();
        QListView *listView = qobject_cast<QListView*>(popup);
        if (listView)
            listView->setUniformItemSizes(true);
But always profile rather then guess :)
-Benjamin Meyer
    
    
More information about the kde-core-devel
mailing list