Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal: Add a compiler flag that makes it easier to know when an AnyVal allocation occurs.
AnyVals can radically improve performance, but allocations can occur in surprising places (removing any performance gains). SIP-15 documents the conditions under which allocation occurs, but that can be hard to remember when browsing a complicated program. Compiler support for detecting allocations would help a lot.
A couple of possible flags are:
Imported From: https://issues.scala-lang.org/browse/SI-9504?orig=1