Opened 3 years ago

Closed 3 years ago

#10290 closed bug (duplicate)

compiling huge HashSet hogs memory

Reported by: zudov Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.10.1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Runtime performance bug Test Case:
Blocked By: Blocking:
Related Tickets: #10289 Differential Rev(s):
Wiki Page:

Description

Compiling a huge (~2.5k elements) set with GHC-7.10.1 or GHC-head and unordered-containers-0.2.5.1 or unordered-containers-head takes way too much memory. Here is a file which I am trying to compile. I've also set up a travis build which demonstrates the behaviour with different versions of GHC and unordered-containers. Further I would be referring to this build-job which uses GHC-7.10.1 and unordered-containers-0.2.5.1.

When the build uses GHC-7.8.4, neither of this hogging occurs. Another interesting observation is that compiling HashMap of the same size, doesn't cause memory hogging even with -O2. This attracted my attention as HashSet is implemented in terms of HashMap.

I reported the issue to unordered-containers as well: link.

Change History (1)

comment:1 Changed 3 years ago by rwbarton

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.