-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Checksummer faster and more correct
The new implementation is faster because of two reasons: - It more aggressively avoids calculating checksums of already-calculated items - It effectfully updates a hash rather than using Immutable::Set It is also more correct because it replaces use of <recur> with a numerical reference to a previously-seen object. Each newly checksummed object will have a number suffix, e.g. `Array#5<…>`. Each previously seen object will have an @-reference, e.g. `Array#9<@4,@5,>`. This will invalidate existing stored checksums in Nanoc sites, but it is unavoidable and worth the tradeoff.
- Loading branch information
1 parent
f1ff297
commit 0ff8793
Showing
6 changed files
with
96 additions
and
71 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
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
Oops, something went wrong.