Skip to content
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

[coq] Memoize coqdep parsing #10116

Merged
merged 1 commit into from Feb 22, 2024
Merged

Conversation

ejgallego
Copy link
Collaborator

I was under the impression that our current code was taking care of this already, however it was not.

Suggestions on what is best w.r.t. Memo/Action_builder code dance welcome.

Obviously, this has a dramatic effect on most Coq builds, for example HoTT's zero build is now:

before:
-------

real	0m5,302s
user	0m5,197s
sys	0m0,056s

after:
------

real	0m0,210s
user	0m0,143s
sys	0m0,034s

Signed-off-by: Emilio Jesus Gallego Arias e+git@x80.org

I was under the impression that our current code was taking care of
this already, however it was not.

Suggestions on what is best w.r.t. `Memo/Action_builder` code dance welcome.

Obviously, this has a dramatic effect on most Coq builds, for example
HoTT's zero build is now:

```
before:
-------

real	0m5,302s
user	0m5,197s
sys	0m0,056s

after:
------

real	0m0,210s
user	0m0,143s
sys	0m0,034s
```

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
@ejgallego ejgallego merged commit 42a203a into ocaml:main Feb 22, 2024
26 of 27 checks passed
@ejgallego ejgallego deleted the coq_memo_coqdep branch February 22, 2024 18:51
rlepigre pushed a commit to rlepigre/dune that referenced this pull request Feb 29, 2024
rlepigre pushed a commit to rlepigre/dune that referenced this pull request Feb 29, 2024
rlepigre pushed a commit to rlepigre/dune that referenced this pull request Feb 29, 2024
@emillon emillon mentioned this pull request Mar 4, 2024
15 tasks
Leonidas-from-XIV added a commit to Leonidas-from-XIV/opam-repository that referenced this pull request Mar 11, 2024
CHANGES:

### Fixed

- When a directory is changed to a file, correctly remove it in subsequent
  `dune build` runs. (ocaml/dune#9327, fix ocaml/dune#6575, @emillon)

- Fix a problem with the doc-new target where transitive dependencies were
  missed during compile. This leads to missing expansions in the output docs.
  (ocaml/dune#9955, @jonludlam)

- coq: fix performance regression in coqdep unescaping (ocaml/dune#10115, fixes ocaml/dune#10088,
  @ejgallego, thanks to Dan Christensen for the report)

- coq: memoize coqdep parsing, this will reduce build times for Coq users, in
  particular for those with many .v files (ocaml/dune#10116, @ejgallego, see also ocaml/dune#10088)

- on Windows, use an unicode-aware version of `CreateProcess` to avoid crashes
  when paths contains non-ascii characters. (ocaml/dune#10212, fixes ocaml/dune#10180, @emillon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants