mirror of https://github.com/voidlizard/hbs2
updated
This commit is contained in:
parent
241b6346b5
commit
802f6d65f3
|
@ -41,6 +41,9 @@ instance (MonadIO m, h ~ HbSync, Storage s h ByteString m) => MerkleWriter ByteS
|
|||
-- FIXME: concurrent-enqueue
|
||||
writeAsMerkle sto bs = do
|
||||
|
||||
-- FIXME: may-be-twice-faster
|
||||
-- Можно ускорить в два раза если выполнять
|
||||
-- параллельно, но потребуется поменять MonadIO на MonadUnliftIO
|
||||
hashes <- do
|
||||
chu <- S.toList_ (readChunkedBS bs defBlockSize)
|
||||
for chu $ \chunk -> do
|
||||
|
|
Loading…
Reference in New Issue