-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Function cleanup #5444
base: develop
Are you sure you want to change the base?
Function cleanup #5444
Conversation
…ing by accident, remove unused param `event`
Thanks for the PR, I'll go over it once I find some time 😅 |
Do you have any idea whether this is still safe to merge? 😬 |
I would say surely yes, but such large amount of line changes did make it a bit hard to keep track of codes. I think I will soon make another PR that only focuses on fixing |
I would really appreciate that 😃 |
This PR:
functions.js
. These comments are basically copied from myfunctions.js
functions.js
, to make them clearer and possibly more performant. E.g.getPreferredItemInTag
is rewritten to usemaxOf
instead ofsort
, this can reduce time complexity from O(n*lg(n)) to O(n), so should be fastering by accident. Also removing an unused param
event
. These functions are located mostly atserver_script/xxx/unification/
These changes have been applied to my fork of E6/E6E for a long time, and they seems working pretty well