Aaronさんのブログ。 Rubyのオブジェクトは40byteで40でalignされてるなるほど。そしてobject_idは配置場所のアドレスを1bit右シフトしたものになってるなるほど。

iga_kiga_k のブックマーク 2018/01/26 12:30

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Object ID in MRI | Tenderlove Making

    Objects in Ruby are 40 bytes. Objects are allocated in to pages (or arenas) that are 2^14 (2 to the 14th power) bytes. Pages are allocated with an aligned malloc where the divisor is the size of a ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう