forked from MetaCoq/metacoq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share string by hashconsing the string objects (reduces memory consumption by half on the Gcd example of certicoq). We do it for whole idents right now, the current Coq string representation does not allow to share prefixes sadly. Also remove the externalisation + elaboration phases when introducing quoted terms, we can bypass it completely and give the term directly for the kernel to check (without bypassing any checks though!). There is still an inefficiency due to retypechecking strings which does not seem so easy to avoid. We went from 240s to 24s when quoting CertiCoq's Gcd example.
- Loading branch information
Showing
1 changed file
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters