!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

419 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.138 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 Nov 2025
@mzero:matrix.orgmzerodid the special casing for small lists get removed? there are still comments that refer to it, but I'm not seeing it in the code (though I could just be missing it)20:54:15
@raitobezarius:matrix.orgraitobezariusremoved, indeed20:54:40
@raitobezarius:matrix.orgraitobezariusdid you notice something problematic for small lists?20:54:48
@mzero:matrix.orgmzerono, I was just looking at the string changes in the release notes and noticed it. is there any perforce impact from it? I assume lists with exactly 2 elems aren't that common, but I'm still curious.20:59:59
@raitobezarius:matrix.orgraitobezariusAFAIK, this optimization is noise when we looked21:07:47
@raitobezarius:matrix.orgraitobezariusLists with 2 elems are usually pairs in Nixlang21:07:58
@raitobezarius:matrix.orgraitobezariusUnnamed pairs21:08:07
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I did research a bit the distribution of list sizes when evaling nixpkgs. Small lists are quite often used, but lists just pale in comparison with attrsets overall21:17:12
@mzero:matrix.orgmzeroname value pairs are so common because of listToAttrs, etc, I wonder if a pair type would actually make a significant perf difference21:19:00
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)A more generic approach could be to have "attrset shapes". Very similar to how v8 optimizes classes with the same layout21:20:09

Show newer messages


Back to Room ListRoom Version: 10