开启InputSourcePro,在Alfred、Spotlight输入时会存在些许卡顿

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
performance

Research direction

Start by diffing the git tags for 2.8.0 and 2.9.0 to find what changed in the keystroke/input-source tracking path that runs on every keypress. Profile the 2.9.0 build with Instruments (Time Profiler) while triggering the Alfred/Spotlight search field to locate the added work on the main thread. Done looks like identifying the specific commit or code path responsible for the regression, with a fix that restores 2.8.0-level responsiveness and is verifiable by reproducing the lag in Alfred or Spotlight.

Written by the indexing model from the issue text.

Description

开启了InputSourcePro之后,打开Alfred或者Spotlight的搜索框,输入时可以感到明显的卡顿。之前都是非常流畅的,应该是更新到最新版本,才存在这种卡顿。

https://github.com/user-attachments/assets/35716ee7-0306-4691-9033-929be5537afa

在视频左下角可以看到击键情况(请注意,它很容易被进度条挡住)。

当我回退到2.8.0版本,这个问题就消失了。

当前环境:Apple Silicon Tahoe Version 26.2|InputSourcePro:2.9.0 (605)

Dominant language
Swift
Stars
3.6k
Forks
144
Avg merge
4h 16m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from runjuu/InputSourcePro

All issues in runjuu/InputSourcePro

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.