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
Juan Batiz-Benet
58f39687cf
logs: removed all log.Errors unhelpful to users
...
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08: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
Jeromy
1244fd251d
update tests, and ensure 'default' blocks are pinned
2015-01-22 00:16:30 +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
Juan Batiz-Benet
136ef70f00
calc_test for picking link block size
2015-01-10 01:22:45 -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
Juan Batiz-Benet
f6235c5cc6
importer: simplified splitter
...
The splitter is simplified using io.ReadFull, as this function
does exactly what we wanted.
I believe io.ErrUnexpectedEOF should be handled as an EOF here,
but please correct me if I'm wrong.
2014-11-25 06:12:35 -08:00
Juan Batiz-Benet
9ae420abb8
SizeSplitter fix: keep-reading until chunk full
...
if the underlying reader is buffered with a smaller buffer
it would force the chunk sizes to come out smaller than
intended.
cc @whyrusleeping @mappum
2014-11-18 06:13:07 -08: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
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
Jeromy
88bf39118c
comment comment comment comment
2014-11-03 03:02:56 +00:00
Jeromy
027920540f
more memory tweaks
2014-11-01 16:07:56 -07:00
Jeromy
317ca2f865
benchmark secure channel
2014-11-01 16:07:56 -07: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
37ce1863c0
test splitting is deterministic. (it is)
2014-10-30 02:49:42 -07:00
Jeromy
71ac117546
Address concerns in PR
2014-10-30 06:23:31 +00:00
Jeromy
18ada93ec3
rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning
2014-10-30 04:40:48 +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
916fc54633
add more comments!
2014-10-08 16:51:53 +00:00
Juan Batiz-Benet
dc2dbdbb02
vendor things
...
cc @whyrusleeping
2014-10-08 04:17:52 -07:00
Jeromy
6e0cfb3273
removed error from return type of blocks.NewBlock()
2014-10-07 20:46:01 +00:00
Jeromy
98cde1578d
integrate dagmodifier into ipns
2014-10-07 07:23:30 +00:00
Jeromy
5c802ae852
add more tests and rework a lot of utility structures
2014-10-07 05:55:28 +00:00
Jeromy
3591e10b2e
implement dagmodifier and tests.
2014-10-06 23:49:45 +00:00
Jeromy
af1ce6ee50
Merge branch 'ipns' of github.com:jbenet/go-ipfs into ipns
2014-10-06 03:43:10 +00:00
Jeromy
5592030ed3
working on dag modification structures, factored out the data format into an importer subpackage and added more ipns tests
2014-10-06 03:42:59 +00:00
Jeromy
a13baff33d
fixed data size reporting
2014-10-05 01:22:01 +00:00
Jeromy
11332fc73b
make the tests pass!
2014-10-04 06:34:06 +00:00
Jeromy
dc66b699b0
fix writes zeroing files
2014-10-03 21:36:29 +00:00
Jeromy
6080944af9
writing files inside ipns works now! also implemented resolve cli command
2014-10-01 00:41:29 -07:00
Jeromy
006b68b558
WIP: getting closer to being able to write in ipns dirs
2014-10-01 00:41:29 -07:00
verokarhu
0beff4bb4a
return the read bytes when EOF is reached
2014-09-30 22:59:56 +03: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
Siraj Ravel
94b8f1d22b
build fixed
2014-09-12 09:30:47 -07:00
Siraj Ravel
02deb3cccb
last golint
2014-09-11 13:00:56 -07:00