-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the speed of file-only imports (#194)
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)
- Loading branch information
1 parent
10c5083
commit 6ff5852
Showing
1 changed file
with
53 additions
and
38 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