Nightly has bigger data size than stable?

#1

I’m puzzled by this result I’m seeing on my CI, which indicates that my tiny set is taking more space on nightly than on the stable compiler. Any ideas why this might be? I don’t normally expect data structure layout to depend on compiler version.

1 Like
#2

The implementation of HashMap was changed recently. Type sizes are not guaranteed unless explicitly documented so.

6 Likes
#3

There’s some discussion of reducing the size here:

2 Likes
#4

Ah yes, somehow I’d forgotten that I used a HashMap inside TinyMap, and it didn’t occur to me therefore that a library change could be responsible. Thanks!