Skip to content

fix: use frederick lean repl + gc#11

Merged
desaxce merged 5 commits into
mainfrom
hugues/take-frederick-repl
Jun 14, 2025
Merged

fix: use frederick lean repl + gc#11
desaxce merged 5 commits into
mainfrom
hugues/take-frederick-repl

Conversation

@desaxce

@desaxce desaxce commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Integrate Frederick Lean repl changes from https://github.com/FrederickPu/repl/tree/lean415compat

@FrederickPu

Copy link
Copy Markdown
Contributor

tracking memory usage for the repl can be quite subtle since there is a parent lake process and some lean process under it. And the parent lake process doesnt consume that much memory. Here is how to benchmark memory usage properly leanprover-community/repl#77 (comment)

Comment thread server/server.py Outdated
infotree_type = body.infotree_type
disable_cache = body.disable_cache

minibatches = split_into_minibatches(codes, 5)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have codes be an array with single element today.
The reason why codes was added is to avoid having to many network requests due to firewall restrictions.

Do the mini-batches help if len(codes) = 1 in benchmarks?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mini-batches only work if you are being passed a large batch consisting of multiple codes.

@desaxce desaxce force-pushed the hugues/take-frederick-repl branch from 8501f5d to edc3c59 Compare June 13, 2025 12:07
@desaxce

desaxce commented Jun 13, 2025

Copy link
Copy Markdown
Contributor Author

I moved your latest commit to #15.

@desaxce desaxce changed the title fix: use frederick lean repl fix: use frederick lean repl + gc Jun 13, 2025
@desaxce desaxce merged commit 2aadfcb into main Jun 14, 2025
@desaxce desaxce deleted the hugues/take-frederick-repl branch June 14, 2025 06:30
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.

3 participants