Skip to content

Conversation

som-snytt
Copy link
Contributor

More compact filter method is more amenable to inlining.

Scala 2 inlines filter in filterNot, obviating the previous flip flag to negate the predicate.

Tweak to infer method alt was to reduce method calls, but nothing is proven yet about improving.

(Something about alt.filter(isAltApplicable) which calls ctx.inSilentMode(isApplicable). The tweak wraps the whole filter in inSilentMode with reporter reset on error. There is a comment about inliner and code structure, to be understood.)

@scala-jenkins scala-jenkins added this to the 2.13.17 milestone Sep 17, 2025
@lrytz lrytz modified the milestones: 2.13.17, 2.13.18 Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants