3 ms·
It incurs some cost, but whether it is higher is very debatable. This is very much workload dependent. A smart compiler can elide most reference updates.
by pkolaczk 7y ago
It incurs some cost, but whether it is higher is very debatable. This is very much workload dependent. A smart compiler can elide most reference updates.
- abjKT26nO8 7y agoIt would seem that the Swift compiler is far from smart[1]. [1]: <https://media.ccc.de/v/35c3-9670-safe_and_secure_drivers_in_high-level_languages> https://media.ccc.de/v/35c3-9670-safe_and_secure_drivers_in_...
- pjmlp 7y agoNo it can't, not in Swift's current implementation. https://github.com/ixy-languages/ixy-languages https://github.com/ixy-languages/ixy-languages