diff options
author | Zubin Duggal <zubin.duggal@gmail.com> | 2023-05-10 15:46:11 +0530 |
---|---|---|
committer | Zubin Duggal <zubin.duggal@gmail.com> | 2023-05-15 15:29:42 +0530 |
commit | d9394fd9a72d4c85da6c53444fc5f99189e7ad8a (patch) | |
tree | 800fd29d76815c82c13ca6d6768d9534dfdfaa11 /testsuite/tests/perf/compiler/MultiLayerModulesDefsGhci.script | |
parent | 745ed77e5b75bb0c6773aa1342abdf2725a61697 (diff) | |
download | haskell-wip/compact-sourcetext.tar.gz |
testsuite: add test for T22744wip/compact-sourcetext
This test checks for #22744 by compiling 100 modules which each have
a dependency on 1000 distinct external files.
Previously, when loading these interfaces from disk, each individual instance
of a filepath in the interface will would be allocated as an individual object
on the heap, meaning we have heap objects for 100*1000 files, when there are
only 1000 distinct files we care about.
This test checks this by first compiling the module normally, then measuring
the peak memory usage in a no-op recompile, as the recompilation checking will
force the allocation of all these filepaths.
Diffstat (limited to 'testsuite/tests/perf/compiler/MultiLayerModulesDefsGhci.script')
0 files changed, 0 insertions, 0 deletions