zigself icon indicating copy to clipboard operation
zigself copied to clipboard

Come up with a proper system to store per-object information

Open sin-ack opened this issue 3 years ago • 0 comments

After the object rewrite there's still one part that sucks: The storage of tiny object-related bits on each object's type. Right now this is admittedly a mess. We have a couple viable approaches here:

  1. Screw space optimization, give each object/map type its own heap word to put its bits into: This wastes 63x space for things like method maps.
  2. Incrementally slice a well-known part of the object header: We can run out of header space easily. Also, I believe I've hit various Zig packed struct bugs while doing this with ExecutableMap.

sin-ack avatar Dec 15 '22 23:12 sin-ack