Skip to content

Conversation

jparise
Copy link
Collaborator

@jparise jparise commented Sep 15, 2025

This migrates the file parsing functions to a stateful FileParser type. This lets us implement a file-level cache so that repeated attempts to parse the same file (via includes) return the cached result.

This still needs more work, but I'm sharing it so others can give it an early look to help determine if this is worth it.

This migrates the file parsing functions to a stateful FileParser type.
This lets us implement a file-level cache so that repeated attempts to
parse the same file (via includes) return the cached result.
@jparise
Copy link
Collaborator Author

jparise commented Sep 15, 2025

@afloram If you have a chance, I'm curious to know what sort of performance improvement you see with this change on e.g. thrift-schemas. The tradeoff is higher memory usage, which we could cap by using a bounded data structure (like an LRU) for the cache.

@jparise jparise added the enhancement New feature or request label Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant