Skip to content

Commit 0acc119

Browse files
committed
Make more QLS Stats members properly strict
Slightly better memory use in the tests.
1 parent a3c5cd0 commit 0acc119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Test/Database/LSMTree/StateMachine.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,7 @@ instance InterpretOp Op (ModelValue (ModelState h)) where
22212221
data Stats = Stats {
22222222
-- === Tags
22232223
-- | Names for which snapshots exist
2224-
snapshotted :: Set R.SnapshotName
2224+
snapshotted :: !(Set R.SnapshotName)
22252225
-- === Final tags (per action sequence, across all tables)
22262226
-- | Number of succesful lookups and their results
22272227
, numLookupsResults :: {-# UNPACK #-} !(Int, Int, Int)
@@ -2242,13 +2242,13 @@ data Stats = Stats {
22422242
, closedTables :: !(Map Model.TableID Model.SomeTable)
22432243
-- | The ultimate parents for each table. These are the 'TableId's of tables
22442244
-- created using 'new' or 'open'.
2245-
, parentTable :: Map Model.TableID [Model.TableID]
2245+
, parentTable :: !(Map Model.TableID [Model.TableID])
22462246
-- | Track the interleavings of operations via different but related tables.
22472247
-- This is a map from each ultimate parent table to a summary log of which
22482248
-- tables (derived from that parent table via duplicate or union) have had
22492249
-- \"interesting\" actions performed on them. We record only the
22502250
-- interleavings of different tables not multiple actions on the same table.
2251-
, dupTableActionLog :: Map Model.TableID [Model.TableID]
2251+
, dupTableActionLog :: !(Map Model.TableID [Model.TableID])
22522252
-- | The subset of tables (open or closed) that were created as a result
22532253
-- of a union operation. This can be used for example to select subsets of
22542254
-- the other per-table tracking maps above, or the state from the model.

0 commit comments

Comments
 (0)