Skip to content

hashset regression #13794

Closed
Closed
@dom96

Description

@dom96

It appears that #13418 has regressed the HashSet implementation.

The repro isn't straightforward but this actually leads to a leak from what I can tell. Lucky for me I spent the whole day tracking it down in my game :/

Here is the repro: https://gist.github.com/dom96/f84dd692f42a35c30bbee14309529d9e

In order to compile it you'll need to export data in HashSet type.

For devel:

$ nim c -r repro.nim
1024
7

For 1.0.6:

$ nim c -r repro.nim
64
7

During the runtime of my game the set's size keeps growing, which makes iterating over it slower and slower.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions