WIP: more complete function application for case->#757
Draft
pnwamk wants to merge 7 commits intoracket:masterfrom
Draft
WIP: more complete function application for case->#757pnwamk wants to merge 7 commits intoracket:masterfrom
pnwamk wants to merge 7 commits intoracket:masterfrom
Conversation
i.e. when applying a case->, the result is the intersection of each applicable range. Here are some quickly gathered performance results from this change: Compile time ratio (old time / new time): schml-specify-rep: 0.99 (i.e. slower, 8.63s (σ 0.09) to 8.72s (σ 0.05)) schml-interp-casts-help: 1.01 (i.e. faster, 20.05s (σ 0.24) to 19.77s (σ 0.01)) parser: 0.95 (i.e. slower, 2.22s (σ 0.05) to 2.33s (σ 0.09)) old-metrics: 0.96 (i.e. slower, 2.68s (σ 0.04) to 2.78s (σ 0.09)) new-metrics: 0.98 (i.e. slower, 3.61s (σ 0.02) to 3.7s (σ 0.08)) math-flonum: 0.98 (i.e. slower, 3.76s (σ 0.02) to 3.83s (σ 0.08)) fsm: 0.94 (i.e. slower, 4.91s (σ 0.09) to 5.22s (σ 0.19)) forth: 0.97 (i.e. slower, 4.87s (σ 0.18) to 5.01s (σ 0.01)) dungeon: 0.95 (i.e. slower, 8.64s (σ 0.11) to 9.11s (σ 0.18)) bernoulli: 0.95 (i.e. slower, 3.95s (σ 0.04) to 4.16s (σ 0.09)) acquire: 0.96 (i.e. slower, 15.53s (σ 0.23) to 16.2s (σ 0.08)) And for the math library, compile time increased from 2m28.281s to 2m40.492s. Note that some primtives (i.e. like those which operate on the numeric tower) currently have quite verbose function types which can be greatly simplified after this change is adopted.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to RFC #756.
Currently a WIP! Hoping to get some of the heavily used larger numeric types benefiting from more complete function application in order to see how things look and how this affects type checking times (see commit comments for some numbers at the moment).