Skip to content

Commit c531282

Browse files
authored
Fix LT-22267: Slow response in interlinear combos (#445)
* Fix LT-22267: Slow response in interlinear combos * Remove unused using
1 parent f41c8d6 commit c531282

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

Src/LexText/Interlinear/ChooseAnalysisHandler.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
// (http://www.gnu.org/licenses/lgpl-2.1.html)
44

55
using System;
6-
using System.Windows.Forms;
76
using System.Drawing;
8-
using SIL.LCModel;
7+
using System.Linq;
8+
using System.Windows.Forms;
99
using SIL.FieldWorks.Common.ViewsInterfaces;
10-
using SIL.LCModel.DomainServices;
11-
using SIL.FieldWorks.FdoUi;
12-
using SIL.LCModel.Utils;
1310
using SIL.FieldWorks.Common.Widgets;
14-
using SIL.LCModel.Core.Text;
11+
using SIL.FieldWorks.FdoUi;
12+
using SIL.LCModel;
1513
using SIL.LCModel.Core.KernelInterfaces;
14+
using SIL.LCModel.Core.Text;
15+
using SIL.LCModel.DomainServices;
16+
using SIL.LCModel.Utils;
1617

1718

1819
namespace SIL.FieldWorks.IText
@@ -311,9 +312,7 @@ void AddAnalysisItems(IWfiAnalysis wa)
311312
{
312313
AddItem(wa,
313314
MakeAnalysisStringRep(wa, m_cache, StyleSheet != null, (m_owner as SandboxBase).RawWordformWs), true);
314-
var guess_services = new AnalysisGuessServices(m_cache, IsParsingDevMode());
315-
var sorted_glosses = guess_services.GetSortedGlossGuesses(wa, m_occurrence);
316-
foreach (var gloss in sorted_glosses)
315+
foreach (var gloss in wa.MeaningsOC.ToList())
317316
{
318317
AddItem(gloss, MakeGlossStringRep(gloss, m_cache, StyleSheet != null), true);
319318
}

0 commit comments

Comments
 (0)