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

Optimization for eliminating redundant memory operations #297

Closed
wants to merge 2 commits into from

Conversation

yyzdtccjdtc
Copy link

Optimization for eliminating redundant memory operations by changing LineNumber to u32.
#293 (comment)

At first I tried to make changes on the latest version, but I found that the latest version was running much slower than the 0.23.0 version that I initially used for testing and modifying (about 3m23s to 4s, which is about 50x slowdown). So now I only submit a pull request based on the 0.23.0 version (commit afb1b36)

These two attachments are the files I used for testing. Please let me know if you have any suggestions.

test.cpp.txt
test2.cpp.txt

Wilfred added a commit that referenced this pull request Jun 12, 2022
This is sufficient, and we were spending a lot of time in this
function in the sample files from #297.
@Wilfred
Copy link
Owner

Wilfred commented Jun 13, 2022

Looks like the performance regression was between 0.28 and 0.29.

@Wilfred
Copy link
Owner

Wilfred commented Jun 13, 2022

Bisect points to 57a4b6d, which will need analysing further.

Wilfred added a commit that referenced this pull request Jun 13, 2022
It looks like we were allocating large buffers for wu-diff, and
mimalloc performance is much worse for this case in the new version.

This reverts performance back to that 0.28 for large files,
such as the example in #297.
@Wilfred Wilfred closed this in ed16863 Jun 13, 2022
@Wilfred
Copy link
Owner

Wilfred commented Jun 13, 2022

Should be fixed now, thanks for the great bug report!

@Wilfred Wilfred mentioned this pull request Sep 29, 2022
Wilfred pushed a commit that referenced this pull request Mar 16, 2023
Wilfred pushed a commit that referenced this pull request Jun 13, 2023
Structural types in declarations
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

Successfully merging this pull request may close these issues.

2 participants