Colin Ho
08/30/2024, 6:36 PMColin Ho
08/30/2024, 6:41 PMColin Ho
08/30/2024, 8:16 PMHashMap<IndexHash, (), IdentityBuildHasher>, i.e. we don't store indices. So, i thought for native, lets just not store the indices then, aka just keep the HashMap<IndexHash, Vec<u64>, IdentityBuildHasher> and just leave an empty vec in there and don't put anything. BUT, a ``HashMap<IndexHash, Vec<u64>`` will allocate more memory than ``HashMap<IndexHash, ()`` upon resizing, even if there's nothing in the vec. Changing it to () completely does the trick. Everything's g now. Native is on-par memory wise with Py, though speed is still roughly 5-10% slower, this is due to the dyn array comparator that native uses. I'll update the PR accordinglySammy Sidhu
08/30/2024, 8:32 PMSammy Sidhu
09/02/2024, 10:05 PMColin Ho
09/03/2024, 1:33 AM