Replies: 1 comment 8 replies
-
|
I haven't thought about it. But I am not sure if it is worth the complexity. The underlying JS engine will already do its own inlining. We might as well try to improve the compiler output first instead, to make it smaller and more friendlier to the JS compilers. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I did some manual inlining, and I believe that we are only one INLINE of arrayp/vectorp away from getting sequence operations in the same performance ball park as native JavaScript
forEachetc.My question is what's the right way to do it? I see two possibilities:
toString(). This need some bootstrap shenanigan for the host to save JS compilation result. This also require adding a syntax tocodegen.lispto splice in raw JS string. My real concern is if in the future we implement more non-trivial optimizations in the compiler, it might be very hard to work with the serialized JS string function bodies. In every other compiler, inlining is supposed to enable more optimization.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions