-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
moving around between cjk characters is very slow #273
Comments
Yes, I've noticed this before with buffers which contain characters from multiple character sets. I think it's due to Emacs initializing its extended multi-language (MULE) support only when necessary, but I'm not an expert on this, so I'm not sure. In particular, I'm not aware of any way to avoid this behaviour. |
I can reproduce it in 25.0.50, and it doesn't seem to go away, so I'm not sure about the loading MULE part. @albert748, can you try to run emacs as |
@albert748 Ok, so I pinpointed this in my .emacs to a line looking like the following:
Do you use something similar? |
Ok, here's a pretty small repro. @purcell, maybe you could try it:
Can you reproduce this? Might also be interesting: I can't reproduce this in 24.3. |
Ok, so I bisected through the 1.6k revisions that separate 24.3 from master; the culprit seems to be af1a69f4d17a482c359d98c00ef86fac835b5fac:
I posted a bug report. |
@cpitclaudel I've been running in to this myself. Can you link to the emacs bug report? |
@bkoropoff Here's the thread. Feel free to add your voice there! |
@cpitclaudel I tested in 24.3/24.4/24.5 and can't reproduce this. |
@emuio Indeed, nor could a number of people who tried on the Emacs bug tracker. Hence the thread there more or less dying away. Reverting the patch that I listed works fine for me, and it was already quite a pain to locate it, so I'm not sure if I want to spend a lot more time trying to find where the issue comes from. It could be a platform specific thing (it occurs on Linux Mint for me), and it could be due to certain fonts. |
I'm having a problem with slow scrolling when using an old Windows XP VAIO laptop: it has 1.5GB RAM, and a Pentium M 1.1GHz. . After disabling several modes, I realized that:
The problem is that when several people is testing this, they have:
I ended using Courier New, a True Type font that between 7 and 27 points, is only hinted, but not smoothed. I'ts the best balance between speed and image quality. (*) Hinted can be seen as aligning the font shape to the monitor pixels, while smoothing is using the LCD/TFT RGB subpixels to provide better resolution. |
See the emacs-dev bug thread. If you're having the same issue, then the bug is clearly identified. It comes from a commit that was introduced to fix another bug, and since that bug is deemed more important than this one, there's no desire to revert the fix. I tried to find another fix for that bug, but I can't reproduce it. |
After more tests, I've realized that the area of the window was not a factor for slow scroll: I was opening the Task Manager to see the CPU% used... but the Task Manager is a special window, it's always over the other windows, you can't hide it. When I resized the emacs window under the Task Manager window, the scroll became very very slow. The rest about hinted and smoothed fonts seems to be right. I've tested this: (progn And in my configuration, emacs hangs for about half a second when scrolling. I've configured these variables to get a smooth scroll with not too much CPU penalty:
|
I have encountered the same problem with Emacs 25.1 on Windows, not necessarily due to the same cause though. Whenever I opened a buffer containing unicode chars to edit, navigation inside the buffer becomes very sluggish. I have found the following solution from the Emacs mailing group to be very effective.
as explained by the original author
Ref: here |
Also, the original cause was fixed in a commit 3 days ago :) |
Since I never use Windows, I'm wary of committing a selective fix to this config. You should probably add something like the following to your local config: (when (and (eq system-type 'nt) (string-equal emacs-version "25.1"))
(setq inhibit-compacting-font-caches t)) |
Hi everyone who seem to solve this problem by set There's much more problem from here like the friend upon said it. I found enable the compact option can solve the minimal region with unicode character but the larger Or if you call the Plattform: win10 daily updately |
thanks for your great configuration first! awsome for emacs beginner like me.
when I first try to input some chinese characters, it's very slow to moving around use C-f, C-b, M-a, M-e, especially use C-n, C-p, emacs will hang for about 1~2 seconds.
I've tried to disable all minor mode, but not working.
my emacs version is emacs 24.5
Test methods, copy chars below to a new buffer, try keys as I described:
The text was updated successfully, but these errors were encountered: