Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: replace rbtree with vector of pair #684

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

eagleoflqj
Copy link
Member

Pull request

Issue tracker

Fixes will automatically close the related issue

Fixes #

Feature

There are many words, but for each word there aren't many representations. Using map is correct in algorithm but bad in this reality. Too many small rbtrees.

Unit test

  • Done

Manual test

  • Done

200MB less peak memory usage for building https://github.com/miounet/rime-kmm-big (3.1GB -> 2.9GB), tested with heaptrack twice.

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

@eagleoflqj eagleoflqj requested a review from lotem August 6, 2023 22:19
@lotem lotem merged commit c515afb into rime:master Aug 7, 2023
5 checks passed
@eagleoflqj eagleoflqj deleted the rbtree-forest branch August 7, 2023 11:06
groverlynn pushed a commit to groverlynn/librime that referenced this pull request Sep 27, 2023
graphemecluster pushed a commit to TypeDuck-HK/librime that referenced this pull request Nov 2, 2023
graphemecluster pushed a commit to TypeDuck-HK/librime that referenced this pull request Nov 8, 2023
graphemecluster pushed a commit to TypeDuck-HK/librime that referenced this pull request Mar 18, 2024
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