Skip to content

Milestone 394 (Zero-Allocation Input Pipeline & Regex Evaluation Modernization)

Choose a tag to compare

@NoxToxCipher NoxToxCipher released this 02 Sep 10:48
· 99 commits to main since this release
896d9be

Milestone 394: Zero-Allocation Input Pipeline & Regex Evaluation Modernization 🛡️⚡🏎️

  1. Zero-Allocation Touch Hit Resolution: Eliminated TextKeyboardIterator heap allocations in TextKeyboard.kt with direct 2D indexed traversal and inline forEachKey loops across all touch paths.
  2. PointerMap Zero-Allocation Iteration: Added inline forEachActive in Pointer.kt avoiding PointerIterator instantiations during continuous gestures.
  3. Glide Gesture Dispatch Optimization: Removed slice take(size - 1) list copies and replaced listener iterations with zero-allocation indexed loops in GlideTypingGesture.kt.
  4. Singleton Regex Hoisting: Hoisted per-keystroke NUM_UNIT_REGEX and MATH_EXPR_REGEX in NlpManager.kt, eliminating regex compilation on every tap.
  5. Verified: 100% test suite passing with 150 / 150 tests clean.