Skip to content

perf: 絵文字辞書をstaticに保持して再利用する - #378

Merged
ensan-hcl merged 1 commit into
azooKey:mainfrom
YuMuuu:fix/reuse-emoji-dictionary
Sep 27, 2026
Merged

ensan-hcl merged 1 commit into
azooKey:mainfrom
YuMuuu:fix/reuse-emoji-dictionary

Conversation

@YuMuuu

@YuMuuu YuMuuu commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

変更内容

変換の候補更新のたびにTextReplacer.withDefaultEmojiDictionary()を呼び絵文字辞書を読み込み・再構築していたため、static letで保持して再利用するように修正しました

絵文字辞書は同梱の静的データで、変換結果による更新処理はないため、初回のみ初期化すれば良いと考えています

確認事項

以下が成功することを確認しています

swift test --package-path Core

@ensan-hcl
ensan-hcl marked this pull request as ready for review September 27, 2026 01:31
@ensan-hcl ensan-hcl assigned ensan-hcl and YuMuuu and unassigned ensan-hcl Sep 27, 2026
@ensan-hcl
ensan-hcl self-requested a review September 27, 2026 01:31

@ensan-hcl ensan-hcl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ensan-hcl ensan-hcl changed the title 絵文字辞書をstaticに保持して再利用する perf: 絵文字辞書をstaticに保持して再利用する Sep 27, 2026
@ensan-hcl
ensan-hcl merged commit bd90b7b into azooKey:main Sep 27, 2026
4 checks passed
@YuMuuu

YuMuuu commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

discordに書いていた内容をこちらにも転記しておきます📝

image

@YuMuuu
YuMuuu deleted the fix/reuse-emoji-dictionary branch September 27, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants