Skip to content

Zero alloc: fix join of Transform with the same variables#2487

Closed
gretay-js wants to merge 23 commits intooxcaml:mainfrom
gretay-js:zero_alloc_sym_trs
Closed

Zero alloc: fix join of Transform with the same variables#2487
gretay-js wants to merge 23 commits intooxcaml:mainfrom
gretay-js:zero_alloc_sym_trs

Conversation

@gretay-js
Copy link
Copy Markdown
Contributor

On top of #2428. Only the last commit is new.

This is a bug fix, as @xclerc noted in review of #2428: Join of two Transform.t with the same variables but different witnesses should result in one Transform with joined witnesses. The fix is to change the representation of Join: instead of a set of Transform.t , use a map from a set of variables to Transform.t.

Current implementation is naive because it effectively keeps two sets of variables for each Transform.t: one as a key in the map and the other as part of the representation of Transform.t.

@mshinwell mshinwell added the zero alloc zero-alloc check label May 2, 2024
@gretay-js gretay-js force-pushed the zero_alloc_sym_trs branch from 391dd47 to 74003ca Compare May 2, 2024 11:51
@gretay-js
Copy link
Copy Markdown
Contributor Author

Included in #2524

@gretay-js gretay-js closed this May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend zero alloc zero-alloc check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants