Skip to content

Conversation

@kderme
Copy link
Contributor

@kderme kderme commented Feb 28, 2022

Supersedes #1067

@kderme kderme mentioned this pull request Feb 28, 2022
kderme added 3 commits March 23, 2022 00:00
It still doesn't use the Stake Address
case byronBlockRaw blk of
Byron.ABOBBlock ablk -> insertABlock tracer cache firstBlockOfEpoch ablk details
Byron.ABOBBoundary abblk -> insertABOBBoundary tracer cache abblk details
-- Serializiing things during syncing can drastically slow down full sync
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- Serializiing things during syncing can drastically slow down full sync
-- Serializing things during syncing can drastically slow down full sync


import qualified Cardano.Db as DB

import Cardano.DbSync.Cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import Cardano.DbSync.Cache
import Cardano.DbSync.Cache (Cache(..), uninitiatedCache)

SyncLagging -> 2000

rightToJust (Right a) = Just a
rightToJust _ = Nothing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a version of this in https://hackage.haskell.org/package/either that's already floating around in package deps somewhere.

Origin -> DB.queryGenesis
At blk -> DB.queryBlockId (SBS.fromShort . getOneEraHash $ blockPointHash blk)
Origin ->
fmap (, Nothing) <$> DB.queryGenesis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fmap (, Nothing) <$> DB.queryGenesis
(, Nothing) <<$>> DB.queryGenesis

I think there is fmap . fmap defined in Protolude as <<$>>

@tmcgilchrist
Copy link
Contributor

What kind of speedup and memory usage are you seeing before / after this change?

@kderme
Copy link
Contributor Author

kderme commented Apr 1, 2022

What kind of speedup and memory usage are you seeing before / after this change?

On benchmarks I've seen some pretty good speedup by caching multiassets #1067

@kderme kderme closed this Apr 1, 2022
@kderme kderme reopened this Apr 1, 2022
@kderme kderme mentioned this pull request Apr 6, 2022
@erikd
Copy link
Contributor

erikd commented Apr 28, 2022

Superceeded by PR #1094 .

@erikd erikd closed this Apr 28, 2022
@kderme kderme deleted the kderme/caches branch July 4, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants