-
Notifications
You must be signed in to change notification settings - Fork 23
[pm_apply] improve mangling by patching outside the loop #241
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much what I had in mind (thanks!), except for using sed "streamingly", so the old file is only read once and the new one only written once.
Plus some beautifying.
Please re-review.
Done, Sweet. I can't click that button to review because I am the PR author, so I'll just hit merge :) |
Yes, that is idiotic logic by the GitHub coders: I also was unable to request a review from you.
Which is fine, because you surely are going to test that once more before the 3.2.1 release, right? 😉 |
Always. |
|
On it - so I test this PRs build? |
|
Works on my machine (return old pulley menu) on 64 bit |
See also #220.
This moves the sed call outside of the detection/mangle list loop.
sed command is built in the loop, but only one call to sed is made.
This saves a couple of greps and tests as well.
Tested against Test Case 2-2, from 9fb6adb#diff-bdc16c81678138d1bc10b9ac315b66564aaf85cad91efaed15e375ef837fd7a3