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

Extreme slowdown when doing global delete. #7

Open
ilAYAli opened this issue Mar 26, 2018 · 1 comment
Open

Extreme slowdown when doing global delete. #7

ilAYAli opened this issue Mar 26, 2018 · 1 comment

Comments

@ilAYAli
Copy link

ilAYAli commented Mar 26, 2018

~100x slowdown in file containing 50k lines of text:

without plugin:

time vim -c ':g/PatternToDelete/d' +qa! ~/tmp/largefile.txt

real    0m0.365s
user    0m0.259s
sys     0m0.097s`

with plugin:

time vim -c ':g/PatternToDelete/d' +qa! ~/tmp/largefile.txt

real    0m27.342s
user    0m7.580s
sys     0m19.247s
@imjaroiswebdev
Copy link
Contributor

I don't know if it's still relevant, but a workaround to this issue is to send the deletions to the underscore (_) register, like for example...

time vim -c ':g/PatternToDelete/d _' +qa! ~/tmp/largefile.txt

In fact, it is how is recommended on Vim docs.

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