doomemacs / doomemacs/core

Doom loads and scrolls through files that include a lot of unicode extremely slowly

Open
#6,276 0 comments 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

I expected doom to load and scroll through files in a short amount of time or instantly, as it does with ASCII only files.

### What actually happened?

When I load files with unicode emacs hangs for a while, and scrolling past lines that includes this unicode will cause hanging as well. A single line of unicode characters will cause brief hanging, while many lines will cause hanging for longer than I care to wait to find out. The performance profiler shows the majority of execution time being spend in the wheel scroll function.

I have been experiencing this while opening C++ files running clangd, but I also tried renaming one of the unicode heavy files as a .py and the same behavior occurred when opened (using pyright).

### Describe your attempts to resolve the issue

_No response_

### Steps to reproduce

Open and scroll through any file with a lot of unicode. A particularly bad example: https://github.com/straight-dev/llvm/blob/e82883b36f6fc6a9d437da74a18b4e2b8079df51/lib/Target/Straight/StraightCodeGen.cpp

### System Information

https://pastebin.com/z2gmkBzA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.