-
Notifications
You must be signed in to change notification settings - Fork 30
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
Run wabt tools in Chicory #341
Conversation
The flakiness mentioned in
I'll investigate this later. |
There were two problems that caused the flakiness:
|
|
||
public static byte[] parse(File file) { | ||
Module module = Module.builder(Wat2Wasm.class.getResourceAsStream("/wat2wasm")).build(); |
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.
Nice 👍
Thanks for all the fixes and the further analysis @electrum , much appreciated! There are good improvements here over my initial approach. I'm happy to hear more opinions! |
If we’re not going to merge this, then we should revert the previous commit, as Chicory is currently broken in IntelliJ. The current performance seems acceptable for now. While worse from a relative standpoint, the absolute build time is still fast enough. I’d rather have it working in IntelliJ. Merging this will provide some good ”low hanging fruit” for performance improvements. |
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.
As agreed, this is good to go.
Let's create a Merge commit to preserve your work, and the commits are also well defined. Thanks for the help! |
Thanks! I'll look at #344 as that is an obvious performance win for these module reuse cases. BTW, with the "well defined commits" workflow, the "rebase merge" option is helpful, as it preserves the contents of the original commits while also ensuring a linear history. This is what we use for Trino and other projects. |
I used to do it, I switched to "merge squash" as it's a little more "beginner friendly", e.g. you don't have to ask people to rebase etc. |
You can choose which option to use for a specific PR when you merge it. I use both options myself, depending on the PR. |
Fair, would you like to streamline this guideline with a sentence or two in Contributing ? |
Modification of #337 to avoid problematic shading by splitting out tests into separate modules.