Commit Graph

2383 Commits

Author SHA1 Message Date
Rafael Weinstein dc137a337d export newStructWithType (#1766) 2016-06-08 18:52:49 -07:00
Rafael Weinstein d4941f6b1e Hash compare uses bytes.Compare (#1765) 2016-06-08 17:25:52 -07:00
cmasone-attic 953ed443f8 Merge pull request #1763 from cmasone-attic/issue1706
Go: writeValue/ payload uses snappy instead of gzip
2016-06-08 16:10:05 -07:00
Chris Masone 42cb294b57 Go: writeValue/ payload uses snappy instead of gzip
We determined that gzipping the entire writeValue payload at Commit-
time was extremely time-expensive. After doing some experiments, it
seems that a couple of changes make Commit go a lot faster:

1) Use snappy instead of gzip
2) Compress chunks individually instead of delaying until the whole
   stream is ready.

This does result in more data needing to be sent over the network.
However, we get to the point of being able to send data _much_ sooner.

Since Chunks are compressed individually, the orderedChunkCache code
now compresses them before storing them, also saving disk space.
2016-06-08 15:46:08 -07:00
Chris Masone fe24bb3577 Vendoring in new version of snappy 2016-06-08 15:38:38 -07:00
cmasone-attic 39bc733a63 Go: Stop treating a chunk's hash as a hint for itself (#1758)
At some point, the Go ValueStore code started caching the hash of a
Chunk as a validation 'hint' for the Chunk itself.  JS never did
this. This must have addressed some edge case back when it was fatal
for validation code to run across a Chunk it hadn't seen and didn't
have a hint for. The downside is that doing this can cause us to send
a hint for every novel Chunk present in a writeValue payload in the
worst case.

Since I can't remember the edge case, and that edge case will no
longer be fatal anyway, removing this to avoid the (potentially
terrible) downside makes sense.
2016-06-08 15:36:16 -07:00
Rafael Weinstein 10482e26e4 Remove postRefs end point (#1761) 2016-06-08 15:23:05 -07:00
Erik Arvidsson 99f757f823 Align js api (#1756)
* JS: remove -> delete

* JS: Set insert -> add

* JS: List remove(start, end) -> remove(idx)

* JS: Increment to 46

Fixes #1750
Fixes #1751
Fixes #1752
2016-06-08 15:20:52 -07:00
Aaron Boodman 89f07b675a csv/csv-import: add support for importing to map. (#1754)
csv/csv-import: add support for importing to map.
2016-06-08 15:18:04 -07:00
Erik Arvidsson 5571e0bc6f Add commas to HRS of struct type (#1759)
This makes the struct more consistent with the rest.
2016-06-08 14:54:47 -07:00
Mike Gray 4303450a7e fixing bug #1723, diff being slow (#1748)
fixing bug #1723, diff was slow due to an incorrect comparison of metaTuple values
2016-06-08 14:44:09 -07:00
Erik Arvidsson d13dc6a2c5 HRS: No need to tag numbers any more (#1760) 2016-06-08 14:42:37 -07:00
cmasone-attic 00af81440f Move Go profiling helpers out of samples/ (#1757)
These are used in cmd as well, so it seemed weird to have
them over in samples/util
2016-06-08 14:26:44 -07:00
Erik Arvidsson ee21e6b9de Fix samples/js (#1755) 2016-06-08 13:35:57 -07:00
Erik Arvidsson bc896efcc5 Add tests for type after mutations (#1753)
Also, remove invariant for set intersection. We can handle different
types now.

Fixes #1749
2016-06-08 11:39:12 -07:00
Rafael Weinstein 335a28026c parallelize csv export (#1746) 2016-06-08 10:28:57 -07:00
cmasone-attic 74a0c98d75 Go: Use unified ref-height-based Pull algorithm (#1722)
Change Dataset.Pull to use a single algorithm to pull data from a
source to a sink, regardless of which (if any) is local. The basic
algorithm is described in the first section of pulling.md. This
implementation is equivalent but phrased a bit differently. The
algorithm actually used is described in the second section of
pulling.md

The main changes:
- datas.Pull(), which implements the new pulling algorithm
- RefHeap, a priority queue that sorts types.Ref by ref-height and
  then by ref.TargetHash()
- Add has() to both Database implementations. Cache has() checks.
- Switch Dataset to use new datas.Pull(). Currently not concurrent.

Toward #1568


Mostly, prune reachableChunks
2016-06-08 08:57:48 -07:00
Aaron Boodman 7dd1b70c23 Update intro.md 2016-06-08 08:34:56 -07:00
Aaron Boodman 6ce2059ff9 Update intro.md 2016-06-07 22:02:52 -07:00
Aaron Boodman a1d922513e Update intro.md 2016-06-07 21:38:11 -07:00
Erik Arvidsson abbd0cfb1e JS: Make Structs use arrays (#1743)
...instead of objects as maps.

Fixes #1715
2016-06-07 15:59:27 -07:00
Dan Willhite 735598f7f1 Merge pull request #1740 from willhite/dataspec
Change dataspec syntax to use '::' in path specs.
2016-06-07 15:11:43 -07:00
Dan Willhite f371a235d5 Change dataspec syntax to use '::' in path specs. 2016-06-07 15:01:26 -07:00
Erik Arvidsson 4af0ca1efb Fix issue with in browser Hash (#1738)
Also, make Hash not copy the bytes.
2016-06-06 17:11:34 -07:00
Erik Arvidsson bc9f9d19e1 Go: Make StructDesc use slices for names and types instead of a map (#1741)
The map showed up in benchmarks...

Fixes #1716
2016-06-06 16:58:40 -07:00
Erik Arvidsson e4b7d13416 Add license field to all the package.json file (#1742)
Issue #1307
2016-06-06 16:56:10 -07:00
Aaron Boodman 4a730c3417 Update README.md 2016-06-06 16:54:16 -07:00
Aaron Boodman b34d46be42 README: so much futz 2016-06-06 13:45:31 -07:00
Aaron Boodman e798b49284 Update README.md 2016-06-06 13:39:16 -07:00
Aaron Boodman 28841ee8c9 Update README.md 2016-06-06 13:28:27 -07:00
Aaron Boodman 36ddd04a64 Update README.md 2016-06-06 13:22:31 -07:00
Aaron Boodman da33e05e48 Update README.md 2016-06-06 13:20:48 -07:00
Aaron Boodman 531f33cf78 Update README.md 2016-06-06 12:57:23 -07:00
Mike Gray 9763c25d93 reduce memory usage in index sequence diff (#1736) 2016-06-06 15:41:25 -04:00
Mike Gray 7b914891a5 adding initial encoding test harness (#1653) 2016-06-06 15:38:09 -04:00
Aaron Boodman 7bab88c605 Update README.md 2016-06-06 11:50:01 -07:00
Rafael Weinstein 3c96c6b5cf Update js-tour.md 2016-06-06 10:41:24 -07:00
Erik Arvidsson 9ad6b09373 Update js-tour.md
Fix typo
2016-06-06 09:36:40 -07:00
Aaron Boodman 97a5505edc Merge pull request #1735 from aboodman/js-tour
Update JS Tour Doc
2016-06-06 00:37:34 -07:00
Aaron Boodman c01026bb8c Update JS Tour Doc 2016-06-06 00:36:27 -07:00
Aaron Boodman d348361e10 Update cli-tour.md 2016-06-05 16:43:12 -07:00
Aaron Boodman 779f762a6d Update README.md 2016-06-05 15:37:35 -07:00
Aaron Boodman d7e722a10e Update README.md 2016-06-05 15:36:33 -07:00
Aaron Boodman 05cc286d85 Update README.md 2016-06-05 15:34:24 -07:00
Aaron Boodman 53ec19d432 Update README.md 2016-06-05 15:29:53 -07:00
Aaron Boodman 20dd931adb Update README.md 2016-06-05 15:20:53 -07:00
Aaron Boodman 11fd2ed5b5 Update README.md 2016-06-05 15:15:08 -07:00
Aaron Boodman 69924c5a21 Update README.md 2016-06-05 15:11:08 -07:00
Aaron Boodman f8cbf96b83 Update README.md 2016-06-05 15:09:08 -07:00
Aaron Boodman f0d78e8718 Update README.md 2016-06-05 15:04:22 -07:00