From 622319f486e13ff9ae5ca05432ef816adc1cf3bc Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Wed, 20 Aug 2025 08:52:27 -0700 Subject: [PATCH 1/2] Fix LT-22267: Slow response in interlinear combos --- .../Interlinear/ChooseAnalysisHandler.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Src/LexText/Interlinear/ChooseAnalysisHandler.cs b/Src/LexText/Interlinear/ChooseAnalysisHandler.cs index 6b6c90c1ed..977ed61abb 100644 --- a/Src/LexText/Interlinear/ChooseAnalysisHandler.cs +++ b/Src/LexText/Interlinear/ChooseAnalysisHandler.cs @@ -3,16 +3,18 @@ // (http://www.gnu.org/licenses/lgpl-2.1.html) using System; -using System.Windows.Forms; using System.Drawing; -using SIL.LCModel; +using System.Linq; +using System.Windows.Forms; +using Paratext.BibleInfo; using SIL.FieldWorks.Common.ViewsInterfaces; -using SIL.LCModel.DomainServices; -using SIL.FieldWorks.FdoUi; -using SIL.LCModel.Utils; using SIL.FieldWorks.Common.Widgets; -using SIL.LCModel.Core.Text; +using SIL.FieldWorks.FdoUi; +using SIL.LCModel; using SIL.LCModel.Core.KernelInterfaces; +using SIL.LCModel.Core.Text; +using SIL.LCModel.DomainServices; +using SIL.LCModel.Utils; namespace SIL.FieldWorks.IText @@ -311,9 +313,7 @@ void AddAnalysisItems(IWfiAnalysis wa) { AddItem(wa, MakeAnalysisStringRep(wa, m_cache, StyleSheet != null, (m_owner as SandboxBase).RawWordformWs), true); - var guess_services = new AnalysisGuessServices(m_cache, IsParsingDevMode()); - var sorted_glosses = guess_services.GetSortedGlossGuesses(wa, m_occurrence); - foreach (var gloss in sorted_glosses) + foreach (var gloss in wa.MeaningsOC.ToList()) { AddItem(gloss, MakeGlossStringRep(gloss, m_cache, StyleSheet != null), true); } From ff666352e28fa1c888e32e4cd7355b6db0665206 Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Wed, 20 Aug 2025 14:07:08 -0700 Subject: [PATCH 2/2] Remove unused using --- Src/LexText/Interlinear/ChooseAnalysisHandler.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Src/LexText/Interlinear/ChooseAnalysisHandler.cs b/Src/LexText/Interlinear/ChooseAnalysisHandler.cs index 977ed61abb..f599a269e7 100644 --- a/Src/LexText/Interlinear/ChooseAnalysisHandler.cs +++ b/Src/LexText/Interlinear/ChooseAnalysisHandler.cs @@ -6,7 +6,6 @@ using System.Drawing; using System.Linq; using System.Windows.Forms; -using Paratext.BibleInfo; using SIL.FieldWorks.Common.ViewsInterfaces; using SIL.FieldWorks.Common.Widgets; using SIL.FieldWorks.FdoUi;