Commit Graph

26 Commits

Author SHA1 Message Date
Jeromy
1e93ee00c0 clean up benchmarks, implement WriterTo on DAGReader, and optimize DagReader 2015-02-04 21:59:51 +00:00
Jeromy
414bdc78c0 fix benchmarks 2015-02-04 21:59:51 +00:00
Jeromy
bc79ae17a1 refactor importer package with trickle and balanced dag generation 2015-02-04 21:59:51 +00:00
Jeromy
b3e74fabb5 implement trickledag for faster unixfs operations 2015-02-04 21:59:50 +00:00
Jeromy
2eca66e6d2 off by one error seeking to end of single block file 2015-01-27 07:41:51 +00:00
Jeromy
6a6ede85d3 TODO -> Background 2015-01-27 03:27:26 +00:00
Jeromy
ba4ea139b9 address concerns from PR 2015-01-27 01:33:09 +00:00
Jeromy
0023cb3097 refactor and clean up dagreader 2015-01-27 01:33:09 +00:00
Jeromy
26826bd55e implement seeking in the dagreader 2015-01-27 01:33:09 +00:00
Juan Batiz-Benet
16690d4af2 race fix: pinner loads with a threadsafe datastore
All the datastores used by pinners and so on should be mutex
wrapped. One issue with changing all of them from
ds.Datastore -> ds.ThreadSafeDatastore is that we wrap the
incoming ds.ThreadSafeDatastore with other datastores, which
do not implement the interface. Re-wrapping again causes
double locking. (which may be ok..., but...) any ideas?
2015-01-14 16:15:38 -08:00
Jeromy
e3cf893616 implement recursive indirect blocks
improve efficiency of multilayered indirect blocks

clean up tests

panic cleanup

clean up logic, improve readability

add final root node to the dagservice upon creation

importer: simplified dag generation

test: updated hashes using latest code

@whyrusleeping this is why the sharness tests
were failing: the hashes are added manually to
make sure our generation doesn't change.

cleanup after CR

fix merkledag tests

fix small block generation (no subblocks!)
2015-01-06 19:43:56 +00:00
Brian Tiger Chow
8e0c8a7a7e refactor(mdag, bserv, bs) mocks, etc.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-13 05:17:16 -08:00
Brian Tiger Chow
74eb03231d fix(core, peer) helpers to testutil, err handling
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 14:32:52 -08:00
Jeromy
d53deebada wire GetBlocks into blockservice 2014-12-05 20:53:26 +00:00
Brian Tiger Chow
ed4a8eb782 chore(tests) add Short() -> SkipNow() to slowest tests
vanilla:
    21.57 real        45.14 user         8.51 sys

short:
    14.40 real        31.13 user         5.56 sys

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Jeromy
e9779b1c7f address comments from PR 2014-10-31 05:57:47 +00:00
Jeromy
ae339a0320 remove dagwriter in favor of new importer function 2014-10-31 05:03:42 +00:00
Juan Batiz-Benet
184c25430b go-vet friendly codebase
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Jeromy
093c8fb04d Rework package structure for unixfs and subpackage
cc @jbenet
2014-10-08 21:14:18 +00:00
Jeromy
dc66b699b0 fix writes zeroing files 2014-10-03 21:36:29 +00:00
Jeromy
fdcd015eed move first data block into top level dag node 2014-09-15 05:35:31 +00:00
Jeromy
78454884db clean up code, make it have a nicer interface 2014-09-15 04:17:29 +00:00
Jeromy
1a7c083850 implement something like rabin fingerprinting 2014-09-15 02:04:55 +00:00
Jeromy
1fa7c07dc7 clean up merge of bren2010's crypto branch and merge into master 2014-09-08 18:17:57 +00:00
Jeromy
275b03f814 rework dagreader to have a dagservice for node resolution 2014-09-06 22:11:44 +00:00
Jeromy
dad9751754 implement a basic data format for data inside dag nodes 2014-09-05 20:47:55 +00:00