core-lang / core

The Core Programming Language
https://core-lang.dev
MIT License
45 stars 1 forks source link

optimize size of object header #46

Open soc opened 2 years ago

soc commented 2 years ago

The header takes up 128 bits (2 pointers á 64 bits) currently, which is too much.

There are various ways to reduce this, ideally to 64 bits or fewer:

Reducing number of pointers:

Reducing size of individual pointers:

See https://soc.me/runtimes/header-compression.