Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Contact search blocks the UI with a large address book

オープン
#921 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

Start with ContactsFragment.onSearchQueryChanged(), the entry point named in the issue, and trace how each keystroke filters and normalizes contacts. Compare the current behavior with the reported working version’s approach to precomputing searchable text and filtering in the background. Done means large address books remain responsive while typing and deleting, with existing matching and ordering preserved; the report says a fix is already working, so check with the contributor before taking it on.

索引モデルが issue の本文から書いたものです。

説明

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.11.1

Affected Android/Custom ROM version

Android 10

Affected device model

Huawei LYA-L29

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug
  1. Use an address book with several thousand contacts (3,520 contacts containing phone numbers in my test).
  2. Open the Contacts tab and activate search.
  3. Type and delete queries of 1 to 7 characters.
  4. Observe UI stalls while typing.
Expected behavior

Typing and deleting a query should remain responsive with a large address book in a fast way not delaying...

Actual behavior

Contact filtering and repeated normalization run on the main thread for each keystroke, causing visible stalls.

Screenshots/Screen recordings

Not attached. Timing measurements are included below.

Additional information

I have a working version with a fix, tested on the same phone and address book. I reproduced the original problem and verified the improvement on the device. Search feels substantially faster and more responsive in everyday use.

Measurement Before Working version
Main-thread work per keystroke 70 to 185 ms 2 to 31 ms, typically 3 to 6 ms
Filtering On the main thread 7 to 30 ms on a background thread

The first keystroke in the baseline took 437 ms. The measurements used temporary SystemClock.elapsedRealtime() instrumentation around the search handler, with roughly 60 keystrokes of typing and deleting queries. These are single-device results, and main-thread time is not the same as end-to-end result latency.

ContactsFragment.onSearchQueryChanged() repeatedly normalizes up to six fields per contact on every keystroke. My patch precomputes searchable text once per contact list, performs filtering on a background thread, and discards outdated results when the query changes or search closes. It preserves the existing matching and ordering rules, including accent-insensitive and numeric searches, which I have tested on the device.

This concerns typing in the Contacts tab, rather than initial contact loading or search in the dial pad/call history.

I'd like to contribute this as a focused PR. Your contribution guidelines require the help wanted label before submission. Could a maintainer add it so I can open the PR?

主要言語
Kotlin
スター
1.4k
フォーク
213
平均マージ
5日 10時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FossifyOrg/Phone のほかの issue

FossifyOrg/Phone の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。