A lot of code in C++ uses __builtin_expect
.
Swift also has such a thing for use in the stdlib, and I was wondering if using _fastPath
and _slowPath
for optimization in my own Swift code (just like I would use it in performance-sensitive C++ code) is discouraged or not (providing it gives me observable performance gain). Since they're underscored, should I be afraid of these functions going away at some point of the language evolution?
Are there any plans to deunderscore them?