vitess-gh/go/vt/vtgate
Anthony Yeh c8e300f0ea vtgate: Clean up mapKeyRangesToShards()
Removed some unnecesary loops and allocations. Also there was no error
path in resolveKeyRangeToShards().

Before:

```
BenchmarkResolveKeyRangeToShards-12      5000000               326 ns/op
48 B/op          2 allocs/op
```

After:

```
BenchmarkResolveKeyRangeToShards-12     10000000               179 ns/op
0 B/op          0 allocs/op
```
2015-11-23 18:14:58 -08:00
..
fakerpcvtgateconn Replacing BoundKeyspaceIdQuery and BoundShardQuery with the proto3 2015-11-16 10:01:28 -08:00
gorpcvtgatecommon Now renaming vtgate/proto to vtgate/gorpcvtgatecommon 2015-11-18 11:03:55 -08:00
gorpcvtgateconn Small fixes to vtgate unit tests to match empty arrays. 2015-11-18 17:11:40 -08:00
gorpcvtgateservice Removing a couple more unused / useless methods. 2015-11-18 11:53:13 -08:00
grpcvtgateconn Migrating all remaining calls to simpler error returns. 2015-11-18 09:32:37 -08:00
grpcvtgateservice protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
planbuilder sqltypes: all code changed to use Result 2015-11-10 00:50:46 -08:00
vindexes sqltypes: new Value 2015-11-17 12:59:45 -08:00
vtgateconn Replacing BoundKeyspaceIdQuery and BoundShardQuery with the proto3 2015-11-16 10:01:28 -08:00
vtgateconntest Small fixes to vtgate unit tests to match empty arrays. 2015-11-18 17:11:40 -08:00
vtgateservice Changing vtgate's Begin call to return the session. 2015-11-18 10:04:31 -08:00
balancer.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
balancer_test.go more protos renamed 2015-11-12 01:13:51 -08:00
discoverygateway.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
discoverygateway_test.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
gateway.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
planner.go vtgate v3: add comments to v3 specific files 2014-11-05 16:27:16 -08:00
request_context.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
resolver.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
resolver_test.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
router.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
router_dml_test.go sqltypes: new Value 2015-11-17 12:59:45 -08:00
router_framework_test.go more protos renamed 2015-11-12 01:13:51 -08:00
router_select_flaky_test.go sqltypes: all code changed to use Result 2015-11-10 00:50:46 -08:00
routing_map.go v3 proto: prep work to support streaming 2014-12-18 00:41:19 -08:00
safe_session.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
sandbox_test.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
scatter_conn.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
scatter_conn_test.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
shard_conn.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
shard_conn_flaky_test.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
shardgateway.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
srv_topo_server.go more protos renamed 2015-11-12 01:13:51 -08:00
srv_topo_server_test.go more protos renamed 2015-11-12 01:13:51 -08:00
topo_utils.go vtgate: Clean up mapKeyRangesToShards() 2015-11-23 18:14:58 -08:00
topo_utils_test.go vtgate: Clean up mapKeyRangesToShards() 2015-11-23 18:14:58 -08:00
vertical_split_test.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
vtgate.go Switching tabletconn API out of tproto.QueyrResultList. 2015-11-19 16:22:40 -08:00
vtgate_error.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
vtgate_error_test.go protos: rest of the protos renamed to ...pb 2015-11-19 22:03:19 -08:00
vtgate_test.go Changing vtgate's Begin call to return the session. 2015-11-18 10:04:31 -08:00