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

faster validation #28

Open
odanoburu opened this issue Sep 5, 2019 · 1 comment
Open

faster validation #28

odanoburu opened this issue Sep 5, 2019 · 1 comment

Comments

@odanoburu
Copy link
Collaborator

ideally the validation should be fast enough for interactive use (e.g., in the emacs mode), but is currently somewhat slow (good enough for validating in continuous integration, though)

@odanoburu
Copy link
Collaborator Author

odanoburu commented Sep 5, 2019

#29 implements a cache for the partial indices of each lexicographer file; when validating, files that haven't changed are not re-parsed, but have their partial indices read from disk, merged, and used for validation.

profiling shows that the main bottleneck is now in I/O (reading the cache). using a faster serialization library will help improve performance, but maybe there's a better approach.

-- edit: we may use (phony?) targets to rebuild in-memory haskell values; this + IPC will allow us to forgo I/O. we would need to add a dependency for IPC, though (probably an HTTP server)

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

No branches or pull requests

1 participant