From f68852b310f7a349b5f2bfb620a074e7b7188e95 Mon Sep 17 00:00:00 2001 From: Benjamin Popp Date: Mon, 18 Nov 2019 20:51:16 -0600 Subject: [PATCH] Limit the number of auto-complete options for performance --- src/HexManiac.Core/Models/PokemonModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HexManiac.Core/Models/PokemonModel.cs b/src/HexManiac.Core/Models/PokemonModel.cs index 007b4a93..7b4951f5 100644 --- a/src/HexManiac.Core/Models/PokemonModel.cs +++ b/src/HexManiac.Core/Models/PokemonModel.cs @@ -1195,6 +1195,8 @@ namespace HavenSoft.HexManiac.Core.Models { } } + // limit it to the first 80 options for performance + if (results.Count > 80) results.RemoveRange(80, results.Count - 80); return results; }