Commit Graph

23 Commits

Author SHA1 Message Date
JoelKatz
b573b1915b Map sync bugfix - wrong hash caused 'fullBelow' optimization to fail. 2013-04-21 12:49:27 -07:00
JoelKatz
bad215d607 Cache the hashes of nodes known to be full below.
Remove the TNByID entries for those nodes in state trees.
This reduces the memory and I/O neded during ledger fetching and prevents
ledger fetching from crushing other caches.
2013-04-19 15:00:36 -07:00
JoelKatz
edf019c0dd Avoid some unnecessary work. 2013-03-27 11:09:00 -07:00
JoelKatz
9d990b82fa Some cleanups. 2013-03-08 10:23:11 -08:00
JoelKatz
22111adbaa Fix some isEmptyBranch and getNodeID performance issues. 2013-03-05 22:16:07 -08:00
JoelKatz
a27c6301fb Add <bitset> include. 2013-03-05 12:57:24 -08:00
JoelKatz
86893487d1 Speedups. 2013-03-05 09:00:31 -08:00
JoelKatz
51a85504a8 Startup and shutdown improvements. Performance improvements. 2013-03-03 02:09:19 -08:00
JoelKatz
063479d77c Remove some premature optimizations. 2013-02-28 13:50:46 -08:00
JoelKatz
ba37349b95 Function to get map entry with its hash. 2013-02-20 11:59:33 -08:00
JoelKatz
bdd5d4af9f Add 'dropCache' function to remove extraneous nodes from memory. 2013-01-27 13:55:06 -08:00
JoelKatz
755182c266 Cleanups. 2013-01-12 03:38:15 -08:00
JoelKatz
57313a9339 Cache the hash of a SHAMapNode. 2013-01-12 03:05:45 -08:00
JoelKatz
26c976f4ac Fix a race condition. 2013-01-08 16:57:18 -08:00
JoelKatz
3712f0f2cb Remove a lot of unneeded hashing. 2013-01-08 15:33:13 -08:00
JoelKatz
f666003977 TMGetObjectByHash needs to know the object type. 2013-01-04 20:42:31 -08:00
JoelKatz
bb6b72fea4 Make a "getNeededHashes" function to get the hashes we need to fill in a ledger hole. 2013-01-04 15:21:02 -08:00
JoelKatz
efd9e91c51 Cleanups. Remove some redundant checks. 2012-12-14 10:53:22 -08:00
JoelKatz
0da30fc82e Avoid some extraneous reference count operations. 2012-12-14 10:10:52 -08:00
JoelKatz
bc3f641373 Track when a node was last accessed. 2012-12-14 09:56:28 -08:00
JoelKatz
585203f558 Be consistent in how we specify this feature table. 2012-12-02 15:36:27 -08:00
JoelKatz
89d54999c9 Rework the way the results of ledger and TX map acquisition is passed up and down the
call chain so that the peer logic will know how helpful peers are being, not just whether
they're sending invalid data.
2012-11-21 09:28:09 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00