https://bugs.kde.org/show_bug.cgi?id=371515

            Bug ID: 371515
           Summary: Adding new entry is slow
           Product: KBibTeX
           Version: 0.6
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: User interface
          Assignee: fisc...@unix-ag.uni-kl.de
          Reporter: juer...@spitzmueller.org

Created attachment 101714
  --> https://bugs.kde.org/attachment.cgi?id=101714&action=edit
Proposed fix

Especially with the biblatex style, adding a new entry to a database can be
extremely slow. It takes up to ~10 seconds until the widget edit dialog finally
pops up.

Debugging revealed that the culprit is FileView::setSelectedElement, more
precisely the loop over all columns added in
https://quickgit.kde.org/?p=kbibtex.git&a=commit&h=4f529a8444e4c

In my case, this loops over all (130!) columns just for the sake of selecting
the whole row after the new entry has been added.

I'll attach a patch which uses the QItemSelectionModel::Rows flag instead,
which has the same effect but is _much_ faster (the editing window now pops up
almost instantaneously).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to