File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,13 @@ instance Bifoldable Entry where
6767 Mupdate v -> f v
6868 Delete -> mempty
6969
70- -- | TODO: we should change this to be a Word64, so that it is in line with the
71- -- disk format.
70+ -- | A count of entries, for example the number of entries in a run.
71+ --
72+ -- This number is limited by the machine's word size. On 32-bit systems, the
73+ -- maximum number we can represent is @2^31@ which is roughly 2 billion. This
74+ -- should be a sufficiently large limit that we never reach it in practice. By
75+ -- extension for 64-bit and higher-bit systems this limit is also sufficiently
76+ -- large.
7277newtype NumEntries = NumEntries Int
7378 deriving stock (Eq , Ord , Show )
7479 deriving newtype NFData
You can’t perform that action at this time.
0 commit comments