-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Optimize makeDynCall to avoid dynamic dynCall where possible #12741
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
Hmm, while the above is is true for Emscripten code, what about external user JS code? Shouldn't we support the abstractions for general use, not just to enough to cover Emscripten API patterns? |
Also it looks like this will conflict with #12732, can that land first? (as it was posted first?) |
This is an interesting point of discussion. I think there are two types of JS library functions that we might want to write but sadly I don't think have any way to distingish them today:
In this case I'm not sure which type of function |
Looking more closely at |
d8a2dd9
to
3d436a8
Compare
3d436a8
to
ab94f82
Compare
2ac6688
to
5a4f6f9
Compare
Now the runtime `dynCall` is only used in places where the signature is not known at compile time, such as embind or (the internally unused) `getFuncWrapper`. Move `getDynCaller` into embind.js which is the only place it was used.
5a4f6f9
to
ff4d89c
Compare
Last usage was removed in #12741
Now the runtime
dynCall
is only used in places where thesignature is not known at compile time, such as embind or
(the internally unused)
getFuncWrapper
.Followup to #12732
See: #12733