Skip to content
New issue

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

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

Already on GitHub? # to your account

Rewrite ascii mode switch logic #1234

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

nopdan
Copy link
Contributor

@nopdan nopdan commented Feb 7, 2024

Pull request

重写 ascii_mode 切换逻辑,记住每个键盘布局的 ascii_mode

Issue tracker

Fixes will automatically close the related issues

Fixes #1092
Fixes #1028
Fixes #1035

Feature

Describe features of this pull request

Code of conduct

Style lint

  • make sytle-lint

Build pass

  • make debug

Manually test

  • Done

Code Review

  1. No wildcards import
  2. Manual build and test pass
  3. GitHub Action CI pass
  4. At least one contributor review and approve
  5. Merged clean without conflicts
  6. PR will be merged by rebase upstream base

Daily build

Login and download artifact at https://github.com/osfans/trime/actions

Additional Info

@nopdan
Copy link
Contributor Author

nopdan commented Feb 7, 2024

image
image

@goofyz 我用虚拟机测试的,确实是非常慢,你试一下编译为 release 版本的速度吧

@nopdan nopdan marked this pull request as ready for review February 7, 2024 10:37
@goofyz
Copy link
Collaborator

goofyz commented Feb 8, 2024

release 版平均也要 200ms

@nopdan
Copy link
Contributor Author

nopdan commented Feb 8, 2024

release 版平均也要 200ms

我这边真机 debug 都只需要 5ms,WP 使用虚拟机+debug 也只要几十ms,可能还是手机的问题。

这个 pr 只是修复 ascii_mode 切换 bug。

以后可以写个专门的符号键盘,不通过 rime 直接上屏,可以避免这个问题。

@nopdan nopdan marked this pull request as ready for review May 7, 2024 06:52
@nopdan
Copy link
Contributor Author

nopdan commented May 7, 2024

@goofyz 再看看吧,逻辑应该没问题了,性能我没法解决

@goofyz
Copy link
Collaborator

goofyz commented May 8, 2024

在我的機子是慢了。不過也可以接受。
@WhiredPlanck @Bambooin 你們的有沒有問題?

@WhiredPlanck
Copy link
Collaborator

@goofyz @nopdan 我这边第一次冷启动会卡一下,其余时间相对正常。

@WhiredPlanck WhiredPlanck merged commit 14595c6 into osfans:develop May 9, 2024
4 checks passed
@nopdan nopdan deleted the ascii-mode branch May 10, 2024 04:20
@nopdan nopdan mentioned this pull request May 10, 2024
5 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants