Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upInvestigate splitting generated bindings out of script #2151
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After #2101 lands, we have the notion of DOM method traits. We could conceivably move the bindings code out of script and thereby improve compilation time if the bindings code only used these traits. LTO might allow us to devirtualize the calls, thereby negating the performance hit of introducing virtual calls into one of the hottest paths. This doesn't solve the problem of passing trait objects to and from C code via SpiderMonkey, of course; it suggests a lot of unsafe casting :/