You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String(format:) sometimes returns an empty string even if the number
being formatted can be represented in an octal string of the requested
length. This may be a thread-safety problem and has only been seen
when running the tests.
swiftlang/swift-corelibs-foundation#5152
This commit changes octal6/11 to use String(value, radix:) and
handle padding directly. This has not failed during hundreds of
test runs.
Benchmarking the old and new implementations of octal6() shows that
the new version also is about twice as fast as the old one and makes
no allocations, whereas the old version made 7 allocations.
0 commit comments