|
|
|
|
|
by koolba
21 days ago
|
|
> This is the kind of thing that can’t be represented in any safe language because the indication of whether a value is a pointer isn’t even in application memory. Welcome to the wonderful world of high performance low level optimization. Storing type ids everywhere would double the size small fields and quadruple tiny ones like booleans. It’s also not necessary for most persisted data as you know the columns for a table. Smaller representation makes reading and writing faster, and it also makes more data fit in memory. |
|
I’ve written plenty of high performance code. You can have safety and high performance at the same timetime.