0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-24 12:41:41 -05:00
bitcoin-bitcoin-core/src/index
Ava Chow 9f1aa88d4d
Merge bitcoin/bitcoin#30884: streams: cache file position within AutoFile
a240e150e8 streams: remove AutoFile::Get() entirely (Pieter Wuille)
e624a9bef1 streams: cache file position within AutoFile (Pieter Wuille)

Pull request description:

  Fixes #30833.

  Instead of relying on frequent `ftell` calls (which appear to cause a significant slowdown on some systems) in XOR-enabled `AutoFile`s, cache the file position within `AutoFile` itself.

ACKs for top commit:
  achow101:
    ACK a240e150e8
  davidgumberg:
    untested reACK a240e150e8
  theStack:
    Code-review ACK a240e150e8

Tree-SHA512: fd3681edc018afaf955dc7a41a0c953ca80d46c1129e3c5b306c87c95aae93b2fe7b900794eb8b6f10491f9211645e7939918a28838295e6873eb226fca7006f
2024-09-16 23:09:16 -04:00
..
base.cpp util: Use compile-time check for FatalErrorf 2024-09-12 15:01:20 +02:00
base.h util: Use compile-time check for FatalErrorf 2024-09-12 15:01:20 +02:00
blockfilterindex.cpp streams: remove AutoFile::Get() entirely 2024-09-13 21:59:29 -04:00
blockfilterindex.h index: cache last block filter header 2024-03-12 11:55:04 -03:00
coinstatsindex.cpp scripted-diff: Replace error() with LogError() 2024-03-11 13:49:37 +01:00
coinstatsindex.h index: add [nodiscard] attribute to functions writing to the db 2023-09-08 10:04:14 -03:00
disktxpos.h tidy: modernize-use-equals-default 2024-07-08 11:12:01 +02:00
txindex.cpp streams: cache file position within AutoFile 2024-09-13 07:35:41 -04:00
txindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00