Commit Graph

38 Commits

Author SHA1 Message Date
JoelKatz
7f4d76808b Fixes and simplifications. 2013-04-26 00:11:44 -07:00
JoelKatz
c785bb3673 More fetch fixes. 2013-04-25 13:28:55 -07:00
JoelKatz
12d86c6a47 Bugfix. 2013-04-22 14:49:45 -07:00
JoelKatz
8a368204c1 Last part of the fetch pack code. 2013-04-22 06:56:11 -07:00
JoelKatz
79ec8e6070 First part of fetch acceleration changes. Includes a bugfix that I'll push to master. 2013-04-21 12:44:21 -07:00
JoelKatz
b993c6ee32 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 14:22:52 -07:00
JoelKatz
f6b9e0ca80 Should return 'false', not throw. 2013-03-31 23:56:37 -07:00
JoelKatz
03b8cbaacc Logging fixups. 2013-03-27 17:45:32 -07:00
JoelKatz
edf019c0dd Avoid some unnecessary work. 2013-03-27 11:09:00 -07:00
JoelKatz
f4e22a8968 Use emplace where we can. (On inserts into unordered maps.) 2013-03-11 03:58:27 -07:00
JoelKatz
ed871e6bc2 Some asserts to catch some possible causes of the SHAMap destructor crash. 2013-03-09 17:13:59 -08:00
JoelKatz
a8daf34a08 Compute SHAMapNode hashes faster. 2013-03-06 01:10:23 -08:00
JoelKatz
22111adbaa Fix some isEmptyBranch and getNodeID performance issues. 2013-03-05 22:16:07 -08:00
JoelKatz
86893487d1 Speedups. 2013-03-05 09:00:31 -08:00
JoelKatz
ce401dffb6 Speed up path finding by about 35%. 2013-03-04 18:57:44 -08:00
JoelKatz
c1f8bed3b8 Fix a possible bug in commented out code. 2013-03-03 05:59:47 -08:00
JoelKatz
15b6fbed0b Temporarily back out this hash change. 2013-03-03 05:55:14 -08:00
JoelKatz
9716882bc0 Be more consistent. 2013-03-03 04:53:15 -08:00
JoelKatz
f30a148e19 Missing lock. 2013-03-03 04:07:04 -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
e674bcea36 A collection of small bugfixes. 2013-02-08 16:22:27 -08:00
JoelKatz
bdd5d4af9f Add 'dropCache' function to remove extraneous nodes from memory. 2013-01-27 13:55:06 -08:00
JoelKatz
8da284705f Fix 'getAffectedAccount' -- logic was totally wrong.
You can't get this from the transaction because which accounts a transaction
affects depends on things like which offers it winds up taking. And you
can't build it with the metadata because you don't always build the metadata
locally -- consider fetching a ledger after a network split. The only
rational way to do this is to build the affected account vector from the
metadata.
2013-01-17 10:46:12 -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
b4004c4676 Fix a bug that, under rare circumstances, could lead to SHAMap corruption 2012-12-29 13:04:17 -08:00
JoelKatz
2203313945 Logging cleanups. 2012-12-18 14:39:02 -08:00
JoelKatz
534ce8307f Have to special-case the root node. 2012-12-14 12:07:50 -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
bda1ce233f Oops. 2012-11-09 07:26:14 -08:00
JoelKatz
d1a0a13cbe Cleanup. 2012-11-09 07:25:33 -08:00
JoelKatz
914839547b Cleanup. 2012-11-09 07:25:23 -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