Bug 258483 - optimize Lokalize for big glossaries
Summary: optimize Lokalize for big glossaries
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: glossary (show other bugs)
Version: 1.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 14:23 UTC by opensuse.lietuviu.kalba
Modified: 2010-12-06 18:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
English-Lithuanian glossary (95.61 KB, application/x-bzip)
2010-12-01 14:25 UTC, opensuse.lietuviu.kalba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opensuse.lietuviu.kalba 2010-12-01 14:23:04 UTC
Version:           1.1 (KDE 4.5) (using KDE 4.5.4) 
OS:                Linux

I have a big glossary with ~7600 terms, but I can not use it in Lokalize 1.1, because Lokalize start in very long time (several minutes).
Lokalize starts normally if I don't use gloosary.

This bug exist in Lokalize 1.1, but not in Lokalize 1.0

Reproducible: Always

Steps to Reproduce:
Have Lokalize 1.1 from KDE 4.5
Use my attached English-Lithuanian glossary
Start Lokalize

Actual Results:  
Hangs on start,
maybe I can work after several minutes

Expected Results:  
Lokalize starts imediatly

OS: Linux (x86_64) release 2.6.34.7-0.5-desktop
Compiler: gcc
Comment 1 opensuse.lietuviu.kalba 2010-12-01 14:25:27 UTC
Created attachment 53940 [details]
English-Lithuanian glossary
Comment 2 Nick Shaforostoff 2010-12-01 15:31:07 UTC
thank you for the report. i will see what i can do.
Comment 3 Nick Shaforostoff 2010-12-02 01:21:09 UTC
SVN commit 1202718 by shaforo:

CCBUG: 258483
optimize for large glossaries (startup and glossary edit window)
todo: optimize work of filter in glossary edit window



 M  +3 -5      common/termlabel.cpp  
 M  +61 -36    glossary/glossary.cpp  
 M  +10 -18    glossary/glossary.h  
 M  +18 -20    glossary/glossarywindow.cpp  
 M  +1 -1      glossary/glossarywindow.h  
 M  +6 -4      project/project.cpp  
 M  +2 -2      project/project.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1202718
Comment 4 Nick Shaforostoff 2010-12-06 18:28:06 UTC
please test the fix when KDE 4.6 is released, or earlier if you can get a fresh trunk build (only kdesdk module is needed, lokalize runs fine even on  KDE 4.4 platform)