Questions tagged [cache]

Uses of caching in Bitcoin related software projects (e.g. Bitcoin Core) and how they can be used to speed up builds

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

What is the data structure of the signature cache in Bitcoin?

There is a signature cache in Bitcoin, which is used to cache the result of signature verification to avoid extra signature verification. What data is stored in the signature cache? Is it stored in ...
1
vote
1answer
45 views

What do these memory configurations in debug.log of BitCoin Core represent?

In the debug.log file of BitCoin Core, the cache configuration is described as follows. Cache configuration: Using 2.0 MiB for block index database Using 8.0 MiB for chain state database Using ...
1
vote
0answers
17 views

What is the relationship between LevelDB's cache (default 8MB) and Bitcoin's UTXO cache?

Please correct me if I am wrong. Bitcoin uses levelDB to store UTXO set. LevelDB has a default 8MB block cache, and the Bitcoin also has a dbcache(default 450MB). What is the relationship between the ...
0
votes
0answers
58 views

How to use the configuration file to change the database cache size of Bitcoin Core GUI?

The cache size is 450MB by default. How to use the configuration file to change the cache size?I know that it can be changed directly through the UI interface. But I want to know if using ...
3
votes
0answers
68 views

Various caches are defined in the Bitcoin source code. What do these caches refer to?

The source code is as follows: //! -dbcache default (MiB) static const int64_t nDefaultDbCache = 450; //! -dbbatchsize default (bytes) static const int64_t nDefaultDbBatchSize = 16 << 20; //...
5
votes
1answer
165 views

When the UTXO in the cache is full, what strategy is used to replace one UTXO with another in the cache?

The UTXO set is stored on the disk, but some UTXOs are also stored in the cache. When validating a transaction, you need to query the UTXO pointed to by the input of the transaction. First, you go to ...
2
votes
1answer
37 views

Are there any other ways of speeding up the building of Bitcoin Core PRs other than ccache?

I am already using ccache to speed up recompilation when building Bitcoin Core PRs. Are there any other ways of speeding up the process?
2
votes
1answer
85 views

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata?

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata? This question was asked on IRC by Anonymous.
0
votes
2answers
121 views

What is ccache? When should I use it when building and reviewing Bitcoin Core PRs?

What is ccache? Can you provide some guidance on when to use it for building Bitcoin Core PRs and how to use it?
7
votes
3answers
5k views

Cache the Bitcoin Datadir to Improve Performance? Increase Bitcoin DB Cache Size?

Bitcoin is very disk-intensive and that slows it down. It seems to flush data to disk often thus preventing proper caching. With the datadir on a RAMdisk it is much faster. Is it possible to increase ...
8
votes
1answer
202 views

Is there a limit on the number of orphan transactions a node can cache?

I´m asking this because a possible attack would be to send an flooding number of orphan transactions, which will never be redeemed. Then clients would have to cache them, increasing storage ...