-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because of the use of evidence, the types for TotalWrapper are not being elided, leading to 10-15 JVM instruction methods for OpaqueInt::atMost. This is especially problematic because these methods are tagged 'inline', so they are significantly increasing size of the methods which use OpaqueInts. I've verified these changes now correctly elide types entirely, but this implementation is extremely fragile. Because scala sees evidence for conversion, it will implicitly use the evidence given a chance, which we don't want. The best I could come up with is a scary warning. :-\
- Loading branch information
Showing
1 changed file
with
48 additions
and
42 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