Commit Graph

3731 Commits (dac1e6f5eae952d0fd91c96dcfe0097bbca04eda)

Author SHA1 Message Date
Carol (Nichols || Goulding) 6fc6fc3329 Merge remote-tracking branch 'origin/master' into er-encoder-bench 2020-02-14 12:47:33 -05:00
Carol (Nichols || Goulding) 78b008a062 fix: Use size_of T instead of hardcoded 8 2020-02-14 12:47:13 -05:00
Edd Robinson 92baa3d7e8 refactor: apply clippy 2020-02-14 17:13:20 +00:00
Edd Robinson b2cdd299f5 refactor: apply clippy 2020-02-14 17:13:05 +00:00
Carol (Nichols || Goulding) 6463601676 fix: Use TryFrom instead of as to get noisy conversion errors 2020-02-14 11:40:36 -05:00
Carol (Nichols || Goulding) 575907814c fix: Make batch sizes be usize and convert through i32 when needed 2020-02-14 11:39:26 -05:00
Carol (Nichols || Goulding) 4dfd4d90ba fix: Use BytesMut directly rather than through actix 2020-02-14 10:56:37 -05:00
Carol (Nichols || Goulding) f7b33d47de fix: Adjust parameter type to avoid double allocation 2020-02-14 10:19:39 -05:00
Carol (Nichols || Goulding) 12fbb23112 fix: Make both query parsing places return bad request on failure 2020-02-14 10:17:48 -05:00
Carol (Nichols || Goulding) dc7a2ec333 fix: Improve parameter type 2020-02-14 10:02:35 -05:00
Carol (Nichols || Goulding) a16c49537f fix: Include limit in size exceeded error 2020-02-14 10:00:35 -05:00
Carol (Nichols || Goulding) 8b1255be9d refactor: Switch to a hyper server 2020-02-14 09:59:09 -05:00
Jake Goulding 49df607e48
Merge pull request #33 from influxdata/format
chore: Apply and enforce standard Rust formatting
2020-02-14 09:57:18 -05:00
Carol (Nichols || Goulding) 062bbc5a34 Merge remote-tracking branch 'origin/master' into er-encoder-bench 2020-02-14 09:15:24 -05:00
Jake Goulding fd76a7394c ci: Enforce standard formatting 2020-02-14 08:02:24 -05:00
Jake Goulding 615e0f6537 style: Apply rustfmt defaults to the entire project 2020-02-14 08:02:11 -05:00
Carol (Nichols || Goulding) 414c5ba871
Merge pull request #32 from influxdata/cn-end-to-end-test
test: Add an end-to-end test
2020-02-13 12:32:34 -05:00
Carol (Nichols || Goulding) 77125bd8e5 improvement: Remove TODO comments that are now done 2020-02-13 10:47:01 -05:00
Carol (Nichols || Goulding) 9cce1e4882 test: Add an end-to-end test
This test:
- Runs the server in a thread
- Writes some data
- Reads some data
- Shuts down the server
2020-02-13 10:40:03 -05:00
Carol (Nichols || Goulding) 3577916307 Merge remote-tracking branch 'origin/master' into er-encoder-bench 2020-02-12 13:25:33 -05:00
Carol (Nichols || Goulding) 3a3a7993b2 refactor: Extract a function for benchmarking decoding 2020-02-12 13:08:11 -05:00
Carol (Nichols || Goulding) 72ea8c09c9 fix: Move a vec allocation outside of the benchmarked code
This is consistent with the rest of the decode benchmarks and I think
matches the benchmark intentions best.
2020-02-12 12:45:43 -05:00
Carol (Nichols || Goulding) c498d1f524 fix: Remove truncate from encoding benchmark
The first thing the `encode` function does is truncate the `dst` buffer,
so this should never be necessary inside the code being benchmarked for
testing encoders.
2020-02-12 12:42:54 -05:00
Carol (Nichols || Goulding) 1fc46c33f3 refactor: Call the general encoding benchmarking fn for CPU values 2020-02-12 11:46:49 -05:00
Carol (Nichols || Goulding) b36c4b9672 refactor: Extract shared benchmarking of encoding
Benchmarking random values was more general than sequential since it
takes an arbitrary function to create the decoded values; express
sequential in terms of random and change the name of random to be
general benchmarking of encoding.
2020-02-12 11:44:08 -05:00
Carol (Nichols || Goulding) 2080bfc5c4 refactor: Extract a fn for benchmarking encoding of random values 2020-02-12 11:41:25 -05:00
Carol (Nichols || Goulding) 532329f83e refactor: Extract a fn for benchmarking encoding of sequential values 2020-02-12 11:30:21 -05:00
Carol (Nichols || Goulding) 85b5d339a9 refactor: Extract batch sizes into constants
Exposes which tests use which batch sizes more clearly; names of
constants could be improved.
2020-02-12 11:14:57 -05:00
Carol (Nichols || Goulding) e361cded92 refactor: Move all encoder benchmarks to one file 2020-02-12 11:08:07 -05:00
Carol (Nichols || Goulding) 6fbe9167ae refactor: Extract large constant to a separate module 2020-02-12 10:28:00 -05:00
Carol (Nichols || Goulding) 28d03c4047
Merge pull request #31 from influxdata/cn-small-piece
Refactoring for generics
2020-02-12 09:49:50 -05:00
Carol (Nichols || Goulding) 5942dd5c8a fix: Remove turbofish that are no longer needed 2020-02-12 09:46:29 -05:00
Carol (Nichols || Goulding) 64223b70a9 refactor: Collapse the read_*_range functions 2020-02-12 09:43:42 -05:00
Carol (Nichols || Goulding) 3399cea18a refactor: Extract a trait to make read_*_range fns more similar 2020-02-12 09:43:42 -05:00
Carol (Nichols || Goulding) 16c8834fbc refactor: Collapse read_*_range functions into a generic function 2020-02-12 09:43:40 -05:00
Carol (Nichols || Goulding) 2b642ffaac refactor: Make read_*_bytes more similar by extracting a trait 2020-02-12 09:42:47 -05:00
Carol (Nichols || Goulding) af85249ea6 fix: Remove unneeded lifetime annotations 2020-02-12 09:42:47 -05:00
Carol (Nichols || Goulding) 07bb075e93 refactor: Extract storing different types in SeriesData 2020-02-12 09:42:47 -05:00
Carol (Nichols || Goulding) 0b515fe1f9 fix: Switch from Copy to Clone bounds 2020-02-12 09:42:46 -05:00
Carol (Nichols || Goulding) daa02069db refactor: Remove unused function 2020-02-12 09:42:42 -05:00
Carol (Nichols || Goulding) 867523c2d9 refactor: Extract the code for storing types' bytes in RocksDB 2020-02-12 09:36:53 -05:00
Jake Goulding 5774414a23
Merge pull request #29 from influxdata/enum-int-mapping
fix: Do not transmute unknown bytes to enums
2020-02-11 20:54:08 -05:00
Jake Goulding 657059af9f fix: Do not transmute unknown bytes to enums
Fixes #24
2020-02-11 20:47:29 -05:00
Jake Goulding 461ead862b
Merge pull request #25 from influxdata/reduce-vec-creation
perf: Reduce amount of Vecs created in the RocksDB code
2020-02-11 20:45:59 -05:00
Jake Goulding 26a6d1a272
Merge pull request #26 from influxdata/ok-or-else
refactor: Use Option::ok_or_else in RocksDB adapter code
2020-02-11 20:45:50 -05:00
Jake Goulding bfef773109
Merge pull request #27 from influxdata/double-hash
perf: Avoid calculating the hashcode twice in the RocksDB adapter
2020-02-11 20:45:37 -05:00
Jake Goulding d248c3e7f2 refactor: Use Option::ok_or_else in RocksDB adapter code
This helper reduces the boilerplate of creating errors for a missing
value.
2020-02-11 20:41:31 -05:00
Jake Goulding b0b8925379 perf: Avoid creating a vector for a subslice 2020-02-11 20:40:21 -05:00
Jake Goulding 2f63ca7fdb perf: Remove unneeded Vec clone 2020-02-11 20:40:16 -05:00
Jake Goulding 959f98f605 perf: Reduce unneeded Vec creation
- Integers can be directly converted to arrays of bytes
- We can extend vectors from other slices instead of `Vec`s
2020-02-11 20:40:12 -05:00