Skip to content

Commit 7f3f440

Browse files
authored
Merge pull request #617 from IntersectMBO/wenkokke/remove-AllocMonkey
fix: remove AllocMonkey
2 parents 2058c06 + 522fa5c commit 7f3f440

23 files changed

+21
-439
lines changed

.github/workflows/haskell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,5 @@ jobs:
313313
- name: 'Run HLint'
314314
uses: haskell-actions/hlint-run@v2
315315
with:
316-
path: '[ "src/", "test/", "src-extras/", "src-fcntl-nocache/", "src-kmerge/", "src-mcg/", "src-monkey/", "src-rocksdb/" ]'
316+
path: '[ "src/", "test/", "src-extras/", "src-fcntl-nocache/", "src-kmerge/", "src-mcg/", "src-rocksdb/" ]'
317317
fail-on: suggestion

bench/macro/lsm-tree-bench-bloomfilter.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import Text.Printf (printf)
2828
import Database.LSMTree.Extras.Orphans ()
2929
import Database.LSMTree.Internal.Assertions (fromIntegralChecked)
3030
import qualified Database.LSMTree.Internal.BloomFilterQuery1 as Bloom1
31+
import Database.LSMTree.Internal.RunAcc (numHashFunctions)
3132
import Database.LSMTree.Internal.Serialise (SerialisedKey,
3233
serialiseKey)
33-
import qualified Monkey
3434

3535
#ifdef BLOOM_QUERY_FAST
3636
import qualified Database.LSMTree.Internal.BloomFilterQuery2 as Bloom2
@@ -201,7 +201,7 @@ lsmStyleBloomFilters l1 requestedBitsPerEntry =
201201
++ replicate 8 (2^(l1+4),16) -- 8 runs at level 3 (tiering)
202202
++ [(2^(l1+8),256)] -- 1 run at level 4 (leveling)
203203
, let nbits = numEntries * requestedBitsPerEntry
204-
nhashes = Monkey.numHashFunctions nbits numEntries
204+
nhashes = numHashFunctions nbits numEntries
205205
]
206206

207207
totalNumEntries, totalNumBytes :: [BloomFilterSizeInfo] -> Integer

bench/macro/lsm-tree-bench-wp8.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ cmdP = O.subparser $ mconcat
226226

227227
setupOptsP :: O.Parser SetupOpts
228228
setupOptsP = pure SetupOpts
229-
<*> O.option O.auto (O.long "bloom-filter-alloc" <> O.value LSM.defaultBloomFilterAlloc <> O.showDefault <> O.help "Bloom filter allocation method [AllocFixed n | AllocRequestFPR d | AllocMonkey m (NumEntries n)]")
229+
<*> O.option O.auto (O.long "bloom-filter-alloc" <> O.value LSM.defaultBloomFilterAlloc <> O.showDefault <> O.help "Bloom filter allocation method [AllocFixed n | AllocRequestFPR d]")
230230

231231
runOptsP :: O.Parser RunOpts
232232
runOptsP = pure RunOpts

lsm-tree.cabal

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ library
190190
, lsm-tree:bloomfilter
191191
, lsm-tree:control
192192
, lsm-tree:kmerge
193-
, lsm-tree:monkey
194193
, primitive ^>=0.9
195194
, text ^>=2.1.1
196195
, vector ^>=0.13
@@ -438,7 +437,6 @@ test-suite lsm-tree-test
438437
, lsm-tree:bloomfilter
439438
, lsm-tree:control
440439
, lsm-tree:extras
441-
, lsm-tree:monkey
442440
, lsm-tree:prototypes
443441
, mtl
444442
, nothunks
@@ -518,7 +516,6 @@ benchmark lsm-tree-bench-bloomfilter
518516
, lsm-tree
519517
, lsm-tree:bloomfilter
520518
, lsm-tree:extras
521-
, lsm-tree:monkey
522519
, random
523520
, time
524521
, vector
@@ -641,14 +638,6 @@ library rocksdb
641638
, bytestring
642639
, indexed-traversable
643640

644-
library monkey
645-
import: language, warnings, wno-x-partial
646-
hs-source-dirs: src-monkey
647-
exposed-modules: Monkey
648-
build-depends:
649-
, ad ^>=4.5.6
650-
, base
651-
652641
library kmerge
653642
import: language, warnings, wno-x-partial
654643
hs-source-dirs: src-kmerge

src-monkey/Monkey.hs

Lines changed: 0 additions & 321 deletions
This file was deleted.

0 commit comments

Comments
 (0)