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
2016-02-04 17:35:04 -05:00
2015-03-24 10:15:18 -07:00
2016-03-16 15:11:58 +11:00
2016-02-18 13:10:06 -08:00
2016-02-04 17:35:04 -05:00
2015-12-16 11:36:52 -08:00
2015-12-11 11:06:14 -08:00
2016-01-06 19:04:19 -08:00
2016-03-22 10:56:29 -07:00
2015-11-11 14:50:21 -08:00
2016-02-26 00:02:08 +00:00
2016-03-16 16:40:16 -07:00
2015-06-24 11:34:49 +10:00
2015-07-24 18:16:06 -07:00
2016-02-19 11:56:12 -08:00
2015-02-05 17:14:05 -08:00
2015-11-06 13:26:24 -08:00
2015-02-26 15:10:08 -08:00
2015-12-16 11:36:52 -08:00
2015-10-02 11:36:57 -07:00
2015-10-05 17:49:53 -07:00

#gRPC-Go

Build Status GoDoc

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the gRPC Quick Start guide.

Installation

To install this package, you need to install Go 1.4 or above and setup your Go workspace on your computer. The simplest way to install the library is to run:

$ go get google.golang.org/grpc

Prerequisites

This requires Go 1.4 or above.

Constraints

The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the list, you need a discussion with gRPC-Go authors and consultants.

Documentation

See API documentation for package and API descriptions and find examples in the examples directory.

Status

Beta release

Description
No description provided
Readme 18 MiB
Languages
Go 99.2%
Shell 0.7%