aboutsummaryrefslogtreecommitdiff
path: root/src/memusage.h
Commit message (Collapse)AuthorAgeFilesLines
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* [copyright] copyright header style uniformisle29832016-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* Add support for unique_ptr and shared_ptr to memusagePieter Wuille2016-06-051-0/+24
|
* mapNextTx: use pointer as key, simplify valueKaz Wesley2016-06-021-0/+16
| | | | | | | | | | | | | | | | | | Saves about 10% of application memory usage once the mempool warms up. Since the mempool is DynamicUsage-regulated, this will translate to a larger mempool in the same amount of space. Map value type: eliminate the vin index; no users of the map need to know which input of the transaction is spending the prevout. Map key type: replace the COutPoint with a pointer to a COutPoint. A COutPoint is 36 bytes, but each COutPoint is accessible from the same map entry's value. A trivial DereferencingComparator functor allows indirect map keys, but the resulting syntax is misleading: `map.find(&outpoint)`. Implement an indirectmap that acts as a wrapper to a map that uses a DereferencingComparator, supporting a syntax that accurately reflect the container's semantics: inserts and iterators use pointers since they store pointers and need them to remain constant and dereferenceable, but lookup functions take const references.
* Prevector typePieter Wuille2015-11-131-1/+9
|
* [Trivial] ensure minimal header conventionsPhilip Kaufmann2015-10-271-1/+1
| | | | | | - ensure header namespaces and end comments are correct - add missing header end comments - ensure minimal formatting (add newlines etc.)
* Track transaction packages in CTxMemPoolEntrySuhas Daftuar2015-09-191-3/+15
| | | | | | | | | | | | | Associate with each CTxMemPoolEntry all the size/fees of descendant mempool transactions. Sort mempool by max(feerate of entry, feerate of descendants). Update statistics on-the-fly as transactions enter or leave the mempool. Also add ancestor and descendant limiting, so that transactions can be rejected if the number or size of unconfirmed ancestors exceeds a target, or if adding a transaction would cause some other mempool entry to have too many (or too large) a set of unconfirmed in- mempool descendants.
* Separate core memory usage computation in core_memusage.hPieter Wuille2015-07-201-65/+1
|
* Implement accurate memory accounting for mempoolPieter Wuille2015-07-101-1/+66
|
* Add memusage.hPieter Wuille2015-05-111-0/+111