-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
refactor check_all_implemented. NFC #8453
refactor check_all_implemented. NFC #8453
Conversation
- return if we do not check for undefined_symbols - removed unused function
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.
Looks good with very minor comments, thanks!
How much does this affect compile time for you?
emscripten.py
Outdated
if not shared.Settings.ERROR_ON_UNDEFINED_SYMBOLS and not shared.Settings.WARN_ON_UNDEFINED_SYMBOLS: | ||
return | ||
# only interested in those which are not in all_implemented | ||
notinImplemented = list(set(shared.Settings.ORIGINAL_EXPORTED_FUNCTIONS) - set(all_implemented)) |
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.
how about missing
as the name for this variable? and the comment could be "the initial list of missing functions are those we expected to export, but were not implemented in compiled code".
If this is a pure refactor, can you add ". NFC" to the end of the PR title? (that stands for Non-Functional Change). I know we don't always do this for emscripten but its a nice convention from llvm that I've love to see used more here. |
oh this is totally skipped now in dynamic linking because of the early return. what used to take 25mins running this function used to take 15 mins, when |
Done. |
Thanks @waterlike86! Oh, actually NFC is not relevant here I think, as this isn't a pure refactor - it's an optimization (skips running unnecessary code)? I'll remove the NFC when I merge |
make it more efficient and skip it entirely when possible
make it more efficient and skip it entirely when possible
possible fix for #8447