[SR-6960] Floating-point nextUp and nextDown are unnecessarily slow for concrete types #49508
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
performance
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: cc10aebb523597a05ab15d027507566e
Issue Description:
As discussed on the Swift forums, implementations of
nextUp
andnextDown
are unnecessarily slow for concrete types.For example, a specialized version of
Float.nextUp
that would be significantly faster is:We should have efficient, specialized implementations such as this. Similar issues may apply to
binade
andulp
.The text was updated successfully, but these errors were encountered: