Skip to content

Conversation

@rgrinberg
Copy link
Member

We seem to create these values from scratch all the time instead of reusing them. Let's not do that where it's easy to reuse these values

@rgrinberg rgrinberg changed the title Hoist up sum dune sexp Hoist up [Dune_sexp.Decoder.sum] uses Dec 6, 2025
@rgrinberg rgrinberg force-pushed the hoist-up-sum-dune-sexp branch from 6bab0b2 to 8aadbeb Compare December 6, 2025 01:25
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
There's no need to create them more than once

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg rgrinberg force-pushed the hoist-up-sum-dune-sexp branch from 8aadbeb to 2d57273 Compare December 6, 2025 23:40
@rgrinberg rgrinberg merged commit 06ed5ee into ocaml:main Dec 8, 2025
29 checks passed
davesnx added a commit to davesnx/dune that referenced this pull request Dec 8, 2025
…without-system

* 'main' of github.com:/ocaml/dune: (30 commits)
  Add (files) stanza (ocaml#12879)
  Make sure to use string equality in parsing hot path (ocaml#12874)
  Hoist up [Dune_sexp.Decoder.sum] uses (ocaml#12876)
  Delay ocaml-index dependencies (ocaml#12881)
  Simplify Lib.requires (ocaml#12880)
  Lib: delay applying modules (ocaml#12884)
  Annotate some ignored parameters in lib.ml (ocaml#12883)
  feat: expand variables in `(promote (into ..))` (ocaml#12832)
  dune-binaries.t: nix ci (ocaml#12875)
  fix: greedy version location in lang declarations (ocaml#12869)
  Reproduction case for ocaml#6220. (ocaml#6221)
  Defunctionalize the dune sexp decoder (ocaml#12768)
  disable flake (ocaml#12873)
  refactor: [instantiate] takes a regular library (ocaml#12849)
  Respect potentially existing lock dir when running format rules (ocaml#12847)
  fix: ascii start
  chore: updated CR someday
  chore: added entry for CHANGES.md
  fix: else claude message
  tests: promoted non-ascii-characters.t to new logic
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants