sr-lab / coqpyt

Python client for coq-lsp
MIT License
25 stars 3 forks source link

Add caching on disk #47

Closed rkthomps closed 2 months ago

rkthomps commented 2 months ago

Start thinking about caching file context on disk so that cached proof files are available across processes. Here are the possible issues with this implementation:

With that being said this significantly speeds up time for ProofFiles. For example, the tests go from 94s to 55s on subsequent runs. Time to run a Proof File for Sudoku.v in the Sudoku repo goes from 199s to 33s.

I think this is important since many files share dependencies even if they are in different projects.

rkthomps commented 2 months ago

I added documentation on the ProofFile object, and made it optional (off by default). I also added a test for the disk caching.