Skip to content

Bdd negation and difference optimizations#15287

Merged
josevalim merged 7 commits into
elixir-lang:mainfrom
gldubc:fix-formatter-bdd-optimizations
Apr 17, 2026
Merged

Bdd negation and difference optimizations#15287
josevalim merged 7 commits into
elixir-lang:mainfrom
gldubc:fix-formatter-bdd-optimizations

Conversation

@gldubc
Copy link
Copy Markdown
Member

@gldubc gldubc commented Apr 17, 2026

Those slow downs happen when using bdd_intersection / bdd_difference over tuple_intersection / tuple_difference:

  1. Found what was causing the formatter.ex slowdown when not using bdd_intersection: it was a blow-up in bdd_negation. Added a new formula for it.

  2. Found out what was causing the slowdown for macro.ex 4s tc times: some blowup in bdd_diff related to negation.

Also fixed a bug on tuple_insert_at.

Comment thread lib/elixir/lib/module/types/descr.ex
Comment thread lib/elixir/lib/module/types/descr.ex
Comment thread lib/elixir/lib/module/types/descr.ex Outdated
Co-authored-by: José Valim <jose.valim@gmail.com>
@josevalim josevalim merged commit 9231515 into elixir-lang:main Apr 17, 2026
14 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@josevalim josevalim deleted the fix-formatter-bdd-optimizations branch April 17, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants