[SR-7540] OptionSet.contains() falls back to Sequence.contains() #50082
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Attachment: Download
Additional Detail from JIRA
md5: b3fd3d81b5a74db1bb83db68103a43ad
Issue Description:
In a complex app, OptionSet's contains() method fails to be inlined, resulting in calls through to Sequence.contains().
Unfortunately, I'm not able to produce a reduced test case for this. I've attached a screenshot of the stack trace from Instruments.
The full source code is attached to an unrelated Radar 39668481, in MetalRenderer/Conversion.swift.
Relevant code:
The text was updated successfully, but these errors were encountered: