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
@lrytz lrytz modified the milestones: 2.13.18, 2.13.19 Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants