Avatar
↑ですね。昨日 https://forums.swift.org/t/parse-int-from-substring-slower-than-string/50516/4 で同じ回答をもらいました(この問題を解決した人に)
Ah, you're using Swift 5.4! The code you're reading in IntegerParsing.swift was rewritten (by me) in March, so you'll need macOS 12/Swift 5.5 to see the results I posted. The previous implementation was indeed over 10 times slower for Substring, one of the reasons I rewrote it. My main preoccupation during the rewrite was making sure code size ...
t_naruhodo 1