日々精進

新しく学んだことを書き留めていきます

swiftのstructはallocated inlineなので速いらしい

mikeash.com: Friday Q&A 2014-06-20: Interesting Swift Featuresに書いてあったんだけど、「As a bonus, it should be more efficient as well, since structs can potentially be allocated inline rather than requiring allocation on the heap.」らしい。
allocated inlineというのはStack領域にallocateされるというのとは違うのだろうか。。