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

Improve the speed of file-only imports #194

Merged
merged 1 commit into from
Dec 21, 2017
Merged

Conversation

Gabriella439
Copy link
Collaborator

This overhauls exprFromPath (and every function downstream of that) to
speed up imports when no URLs are imported.

Previously, Dhall would always demand a Manager on the very first
import, whether or not Dhall actually needed to fetch a remote URL.
Fetching this Manager adds an unusually long overhead (~1 s) to
programs that only needed to fetch local files.

Now the Manager is only requested as late as possible (i.e. right
before the first URL import)

This is a breaking change, since it changes the types of several exported
utilities in the API

This overhauls `exprFromPath` (and every function downstream of that) to
speed up imports when no URLs are imported.

Previously, Dhall would always demand a `Manager` on the very first
import, whether or not Dhall actually needed to fetch a remote URL.
Fetching this `Manager` adds an unusually long overhead (~1 s) to
programs that only needed to fetch local files.

Now the `Manager` is only requested as late as possible (i.e. right
before the first URL import)
@Gabriella439 Gabriella439 merged commit 6ff5852 into master Dec 21, 2017
@Gabriella439 Gabriella439 deleted the gabriel/faster_files branch December 21, 2017 18:08
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.

1 participant