Cory LaNou
|
c27953a764
|
put shard responsibilities in shard.go
|
2015-04-23 16:33:18 -06:00 |
Philip O'Toole
|
96a81826ec
|
Support int64 data types
|
2015-04-13 11:04:27 -07:00 |
Ben Johnson
|
04a475cdb2
|
Optimize marshalTags().
This commit optimizes the marshaling of tag sets. Previously the
strings.Join() function was used with added a lot of memory allocations.
The new implementation manually allocates and appends to a byte slice.
Previous implementation:
$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1 2000000 824 ns/op 176 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN3 1000000 1319 ns/op 416 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN5 1000000 2173 ns/op 656 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN10 500000 3929 ns/op 1280 B/op 6 allocs/op
New implementation:
$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1 3000000 458 ns/op 80 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN3 2000000 753 ns/op 160 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN5 1000000 1193 ns/op 240 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN10 500000 2477 ns/op 448 B/op 3 allocs/op
|
2015-03-31 16:55:42 -06:00 |
Philip O'Toole
|
a5749bebfb
|
Store Measurement commands in batches
This introduces consistency into the code, and makes testing easier.
|
2015-02-27 16:25:50 -08:00 |
Philip O'Toole
|
ec93341f3f
|
More shard "contains" unit tests
|
2015-02-27 14:53:47 -08:00 |
Philip O'Toole
|
05d630bfb8
|
Refactor shard group time bound checking
This allows it to be tested.
|
2015-02-27 14:03:13 -08:00 |
David Norton
|
0d4a8dcc2b
|
fix #1764: panic index out of range
|
2015-02-27 11:53:02 -05:00 |
Philip O'Toole
|
f5b2962d42
|
Incorporate inital code review feedback
|
2015-02-20 11:28:07 -08:00 |
Philip O'Toole
|
0e3e223e84
|
Always ensure measurement exists in command
Unit tests need updating since some tests are no longer valid.
|
2015-02-20 11:28:07 -08:00 |
Philip O'Toole
|
93dea5d527
|
Test failure cases for measurement create command
|
2015-02-20 11:28:06 -08:00 |
Philip O'Toole
|
3435da9626
|
Correctly initialize createMeasurement maps
Full unit tests added for happy paths.
|
2015-02-20 11:28:06 -08:00 |
Ben Johnson
|
1eda0ffcb9
|
Refactoring query engine.
|
2015-01-27 20:26:31 -05:00 |