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

Mogan took so much time to open #1723

Open
JackYansongLi opened this issue Mar 13, 2024 · 4 comments
Open

Mogan took so much time to open #1723

JackYansongLi opened this issue Mar 13, 2024 · 4 comments

Comments

@JackYansongLi
Copy link
Contributor

Mogan Version

1.2.5

Operating System Version and Architecture

Arch Linux, x86, surface pro 6

Describe Bug

The following is the warning I get after running mogan from the terminal.

TeXmacs] std-bench, Task 'db_load_suffixes /usr/share/Xmacs/fonts/font-database.scm' took 48 ms
TeXmacs] std-bench, Task 'tt_font_exists NotoSerifCJK-Regular' took 57 ms

Expected Behavior

Load these fonts faster.

@JackYansongLi JackYansongLi added the bug Something isn't working label Mar 13, 2024
@da-liii da-liii removed the bug Something isn't working label Mar 14, 2024
@da-liii
Copy link
Contributor

da-liii commented Mar 14, 2024

Not a bug, because bug means that something is not working.

This is not a warning, it shows the bench info. Loading fonts info is slow for first time users, for the second time, it should not be as "slow" as you post.

@JackYansongLi
Copy link
Contributor Author

Not a bug, because bug means that something is not working.

This is not a warning, it shows the bench info. Loading fonts info is slow for first time users, for the second time, it should not be as "slow" as you post.

What I posted is not the first time I opened Mogan. Maybe the CPU in my computer is too weak? (surface pro 6, intel i7 8650U)

@da-liii
Copy link
Contributor

da-liii commented Mar 28, 2024

For me:

TeXmacs] std-bench, Task 'tt_font_exists NotoSerifCJK-Regular' took 11 ms
TeXmacs] With linked TrueType support

Still need to make Mogan faster to be launched. And it is not a bug (compared to the launch time for GNU TeXmacs)

@da-liii
Copy link
Contributor

da-liii commented Apr 4, 2024

TeXmacs] std-bench, Task 'db_load_suffixes /usr/share/Xmacs/fonts/font-database.scm' took 48 ms

The impl of parsing scheme formatted text is not optimized.
https://github.com/XmacsLabs/moebius/blob/main/moebius/data/scheme_der.cpp

Change the format (such as binary format) can speed up the loading of the font database, but it is not necessary for now.

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

No branches or pull requests

2 participants