Is there a performance hit for using a u32 on an x64 chip?

I would use the compact storage representation, together with a short macro to do the usize conversion at the point of indexing. See my earlier post on this.

2 Likes