Граф коммитов

1413 Коммитов

Автор SHA1 Сообщение Дата
iamqizhao eae2b52e5d Temporarily disable handler-tls for TestHealthCheckOff due to #619 2016-04-07 16:01:36 -07:00
Qi Zhao ecd00d52ac Merge pull request #630 from timburks/patch-1
Update grpc-auth-support.md
2016-04-06 14:04:19 -07:00
Tim Burks c3d43ed0f4 Update grpc-auth-support.md 2016-04-05 17:31:00 -07:00
Menghan Li 3d07b4a547 Add stress test metrics proto 2016-04-05 14:29:53 -07:00
Menghan Li 74b8b4c086 Add stress test client 2016-04-05 14:29:40 -07:00
Qi Zhao e3d8dfd907 Merge pull request #626 from menghanl/interop_log
Move interop log from utils to client main
2016-04-04 18:43:02 -07:00
Menghan Li 62a892fc16 Move interop log from utils to client main 2016-04-04 16:00:19 -07:00
Qi Zhao 3ba0629598 Merge pull request #624 from tianon/recieved
Fix minor "recieved" typo (should be "received")
2016-04-04 11:31:34 -07:00
Qi Zhao 940ec1b75c Merge pull request #615 from tamird/marker-method
transport: replace isItem with a marker method
2016-04-04 11:31:14 -07:00
Qi Zhao 466b6e4052 Merge pull request #587 from tamird/perf
transport: allocate bigger slabs and reuse
2016-04-04 11:30:38 -07:00
Tamir Duberstein 036dca28a6 transport: replace isItem with a marker method
Also changes the receivers to pointers because:
- Implementing an interface using value receivers causes both pointers
and values to implement that interface; implementing an interface using
pointer receivers causes only pointers to implement the interface,
thereby providing better type safety.
- Wrapping any value other than an empty struct in an interface causes
the value to be heap-allocated; no additional allocations are therefore
caused by this change.
2016-04-02 21:39:09 -04:00
Tianon Gravi bbde7d8d28 Fix minor "recieved" typo (should be "received") 2016-04-02 10:34:26 -07:00
Qi Zhao 5aeebcd810 Merge pull request #605 from broady/contrib
Add instructions to CONTRIBUTING.md
2016-04-01 14:03:47 -07:00
Qi Zhao ac6f0e3135 Merge pull request #623 from tamird/simplify-minor
minor cleanup: simplify looping
2016-04-01 13:52:20 -07:00
Qi Zhao ea95bd6b4c Merge pull request #621 from xiang90/doc
remove unnecessary comment on invoke/sendmsg
2016-04-01 13:50:40 -07:00
Xiang Li 11ef22ebfb make comment on invoke/sendmsg more clear 2016-04-01 10:47:25 -07:00
Tamir Duberstein 2a118f74a2 minor cleanup: simplify looping 2016-03-31 22:05:49 -04:00
Menghan Li 68dadb4d00 Merge pull request #620 from iamqizhao/master
fix a test error msg
2016-03-31 09:36:46 -07:00
iamqizhao b0a5402a2a fix a test error msg 2016-03-30 11:10:27 -07:00
Qi Zhao 33966f5391 Merge pull request #602 from menghanl/metadata_doc
Add metadata documentation
2016-03-29 14:16:34 -07:00
Menghan Li 3187ce79ff Merge pull request #617 from iamqizhao/master
Added the unmapped http2 error and fixed a related bug in RST_STREAM …
2016-03-29 13:58:50 -07:00
iamqizhao 2f0d12ea11 Added the unmapped http2 error and fixed a related bug in RST_STREAM handling. 2016-03-29 11:07:22 -07:00
Menghan Li b60d4e72a1 Add metadata documentation 2016-03-29 11:00:44 -07:00
Tamir Duberstein 9e8752e7a2 transport: allocate bigger slabs and reuse
This provides a substantial speed improvement with large payloads.

Benchmarked using https://github.com/cockroachdb/rpc-bench:

```
name                 old time/op    new time/op    delta
GRPCServeHTTP_1K-4      178µs ± 2%     177µs ± 1%     ~     (p=1.000 n=5+5)
GRPCServeHTTP_64K-4    1.30ms ± 3%    1.09ms ± 4%  -16.82%  (p=0.008 n=5+5)

name                 old speed      new speed      delta
GRPCServeHTTP_1K-4   11.5MB/s ± 2%  11.6MB/s ± 1%     ~     (p=1.000 n=5+5)
GRPCServeHTTP_64K-4   100MB/s ± 2%   121MB/s ± 4%  +20.26%  (p=0.008 n=5+5)

name                 old alloc/op   new alloc/op   delta
GRPCServeHTTP_1K-4     88.5kB ± 0%    93.9kB ± 0%   +6.16%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4     801kB ± 0%     791kB ± 0%   -1.16%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
GRPCServeHTTP_1K-4        162 ± 0%       156 ± 0%   -3.70%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4       645 ± 0%       284 ± 0%  -55.96%  (p=0.016 n=5+4)
```
2016-03-29 05:29:55 -04:00
Qi Zhao d1f7152c46 Merge pull request #612 from peter-edge/makefile_updates
Update Makefile
2016-03-28 23:31:13 -07:00
Qi Zhao 877b524786 Merge pull request #588 from tamird/perf-less
transport: performance improvements
2016-03-28 23:30:09 -07:00
Qi Zhao 3c688e321a Merge pull request #611 from iamqizhao/master
Bump the required Go version
2016-03-28 23:15:44 -07:00
Qi Zhao 8e8c6a1b40 Merge pull request #604 from broady/travis
travis: build against go1.5.3, go1.6
2016-03-28 23:15:11 -07:00
Tamir Duberstein 54ac7579a7 transport: skip the backlog if it's empty
This provides a modest reduction in allocation count.

Benchmarked using https://github.com/cockroachdb/rpc-bench:

```
name                 old time/op    new time/op    delta
GRPCServeHTTP_1K-4      181µs ± 3%     178µs ± 2%    ~     (p=0.310 n=5+5)
GRPCServeHTTP_64K-4    1.31ms ± 4%    1.30ms ± 3%    ~     (p=0.548 n=5+5)

name                 old speed      new speed      delta
GRPCServeHTTP_1K-4   11.3MB/s ± 3%  11.5MB/s ± 2%    ~     (p=0.246 n=5+5)
GRPCServeHTTP_64K-4   100MB/s ± 4%   100MB/s ± 2%    ~     (p=0.548 n=5+5)

name                 old alloc/op   new alloc/op   delta
GRPCServeHTTP_1K-4     88.5kB ± 0%    88.5kB ± 0%  -0.09%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4     801kB ± 0%     801kB ± 0%  -0.05%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
GRPCServeHTTP_1K-4        167 ± 0%       162 ± 0%  -2.99%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4       672 ± 0%       645 ± 0%  -4.08%  (p=0.008 n=5+5)
```
2016-03-28 21:26:36 -04:00
iamqizhao 58c3636a27 revise wording 2016-03-28 15:44:29 -07:00
Chris Broadfoot 785723ef9c travis: build against go1.5.3, go1.6 2016-03-28 15:06:19 -07:00
Peter Edge bc6951eb0b Update Makefile.
Signed-off-by: Peter Edge <peter.edge@gmail.com>
2016-03-29 00:05:04 +02:00
iamqizhao a6e9e042c5 Bump the required Go version 2016-03-28 15:02:37 -07:00
Qi Zhao 5309b8314a Merge pull request #608 from menghanl/better_http2_header_newline_error
Use ErrorDetail() to provide better error msg for malformed HTTP2
2016-03-28 13:17:04 -07:00
Menghan Li 71e3dbec56 Use ErrorDetail() to provide better error msg for malformed HTTP2 2016-03-28 11:34:29 -07:00
Chris Broadfoot 85c387ba1c Add instructions to CONTRIBUTING.md 2016-03-24 13:55:06 -07:00
Qi Zhao 9e3a674ceb Merge pull request #599 from iamqizhao/master
lowercase credential keys
2016-03-22 14:41:09 -07:00
iamqizhao e5f60381dd lowercase credential keys 2016-03-22 11:33:19 -07:00
Qi Zhao 2dc70c28da Merge pull request #596 from enisoc/errorf
Don't treat StatusDesc() as a format string.
2016-03-22 11:11:59 -07:00
Qi Zhao 896247136f Merge pull request #598 from iamqizhao/master
Specialize http2.StreamError when the server reads frames
2016-03-22 11:07:08 -07:00
iamqizhao a31af4bde2 Add some comments to the new test. 2016-03-22 10:56:29 -07:00
iamqizhao a098b2c182 Specialize http2.StreamError when the server reads frames 2016-03-21 18:23:30 -07:00
Anthony Yeh a294a45ba0 Don't treat StatusDesc() as a format string.
For example, if the error message contains "%v", then passing
StatusDesc() as the format string to Errorf() will replace "%v" with
"%!v(MISSING)".
2016-03-19 17:15:21 -07:00
Qi Zhao d3ddb4469d Merge pull request #595 from vieux/typos
fix a few typos
2016-03-17 10:50:43 -07:00
Victor Vieux 047af78181 fix a few typos 2016-03-16 16:40:16 -07:00
Qi Zhao 75cc451428 Merge pull request #593 from dsymonds/prbot-gofmt
gofmt everything
2016-03-16 10:40:56 -07:00
David Symonds a0594a1683 Run gofmt over Go source files. 2016-03-16 15:11:58 +11:00
Qi Zhao 986912c907 Merge pull request #590 from petermattis/pmattis/context-with-stream
transport: remove unnecessary allocation
2016-03-09 11:37:48 -08:00
Qi Zhao ef489cba5c Merge pull request #591 from petermattis/pmattis/buffered-reader
Use a bufio.Reader for input.
2016-03-09 11:35:03 -08:00
Peter Mattis a1d076a617 Use a bufio.Reader for input.
This reduces the number of system calls for reading network data,
providing a nice speedup when there are concurrent RPCs.
2016-03-09 12:07:58 -05:00