Skip to content

f202e46 slows down editing C code in Doom Emacs #296

Description

@chabulhwi

Using git bisect, I've found that diff-hl has made editing C source files in Doom Emacs much slower since f202e46.

Note that doomemacs/modules@3fe5ff6 bumped diff-hl from 902d082 to 2f1623d. f202e46 is ahead of 2f1623d by 3 commits.

When I try writing the following C code by hand in Doom Emacs, the input lag is quite noticeable.

int main(void)
{
	int a = 10;

	int b[] = {1, 2, 3};

	int c[] = {4, 5, 6, 7};

	int d[] = {8, 9, 10, 11, 12};

	double e[] = {1.2, 3.4, 5.6};

	return 0;
}

I fixed the issue by adding the following line to the end of my packages.el file, which is located in the ~/.config/doom directory.

(package! diff-hl :pin "f8ffd7782623f7e102cf39e66e30b2abaf74d91c")

f8ffd77 is the commit right before f202e46.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions