From c15ef4d5c031f330a5c83f6e1de08850391b4fa0 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 24 Jan 2022 20:33:13 +0800 Subject: [PATCH] Boost default buffer capacity to 20 chars. --- Source/PreferencesModule.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/PreferencesModule.swift b/Source/PreferencesModule.swift index 7d9d0c02..ba583745 100644 --- a/Source/PreferencesModule.swift +++ b/Source/PreferencesModule.swift @@ -41,9 +41,9 @@ private let kMaxCandidateListTextSize: CGFloat = 196 // walks the grid with good performance slower Macs (like old PowerBooks) // will start to sputter beyond 12 such is the algorithmatic complexity // of the Viterbi algorithm used in the builder library (at O(N^2)) -private let kDefaultComposingBufferSize = 10 +private let kDefaultComposingBufferSize = 20 private let kMinComposingBufferSize = 4 -private let kMaxComposingBufferSize = 20 +private let kMaxComposingBufferSize = 30 private let kDefaultKeys = "123456789"