Commit Graph

1371 Commits

Author SHA1 Message Date
Jan Tattermusch b667c2f72f regenerate ruby protos 2019-03-12 05:09:46 -04:00
Soheil Hassas Yeganeh c060d55cc7
Revert "Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing." 2019-03-05 14:01:01 -05:00
Soheil Hassas Yeganeh 509e77a5a3 Introduce grpc_byte_buffer_reader_peek and use it for Protobuf parsing.
grpc_byte_buffer_reader_next() copies and references the slice. This
is not always necessary since the caller will not use the slice
after destroying the byte buffer.

A prominent example is the protobuf parser, which
calls grpc_byte_buffer_reader_next() and immediately unrefs the slice
after the call. This ref() and unref() calls can be very expensive
in the hot path.

This commit introduces grpc_byte_buffer_reader_peek() which
essentialy return a pointer to the slice in the buffer, i.e.,
no copies, and no refs.

QPS of 1MiB 1 Channel callback benchmark increases by 5%.
More importantly insructions per cycle is increased by 10%.

Also add tests and benchmarks for byte_buffer_reader_peek()
2019-03-04 14:17:46 -05:00
yang-g 456f748b2f Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
This reverts commit 9079e98dfc, reversing
changes made to 76a38bfcc2.
2019-02-25 10:11:06 -08:00
Yang Gao 4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread" 2019-02-22 16:34:24 -08:00
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
apolcyn aa207933cb
Merge pull request #16240 from mattolson/fix-default-pool-keep-alive
Ruby: Fix default pool keep alive
2019-02-14 23:22:45 -08:00
yang-g 545c555d31 Rename new public API 2019-02-14 14:22:40 -08:00
Srini Polavarapu f7f6861720
Merge pull request #18033 from srini100/master
Bump master to v1.20.x and pick "godric" for that release
2019-02-13 12:17:12 -08:00
yang-g 233406d450 generate projects 2019-02-13 11:29:40 -08:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Alexander Polcyn 5c85f5a1a0 Ruby: refactor init/shutdown logic to avoid using atexit; fix windows 2019-02-10 16:14:19 -08:00
Yihua Zhang a3d997cbdc Add a TLS credential surface API (experimental) 2019-01-29 10:04:28 -08:00
apolcyn 9ed8734efb
Merge pull request #17606 from matoro/master
Ruby tooling: respect user toolchain overrides
2019-01-24 00:06:05 -08:00
matoro 6ca6a06075 Ruby tooling: respect user toolchain overrides
While compilation flag overrides for the Ruby native extension are
currently functional, specifying an alternate compiler is not, as the
Rbconfig values for key toolchain binaries are hardcoded at compile time
of the Ruby interpreter.  This patch allows them to be overrridden on
the command line via standard environment variables, defaulting to the
Rbconfig values only if unspecified by the user.
2019-01-23 16:40:41 +00:00
Jan Tattermusch 5a6c984d3a clang format code 2019-01-08 16:06:38 +01:00
Christopher Warrington 832e5f06c3 Fix typos in comments 2019-01-07 17:36:14 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
apolcyn fc7d0911a3
Merge pull request #17348 from toc007/ruby-sigint
server graceful shutdown for pull request
2018-12-26 13:23:29 -08:00
Tommy Chen 39ac83a49e ruby-sigint ready to be merged! 2018-12-26 11:17:48 -08:00
Jan Tattermusch b904fdaa40 do not use server override in ruby interop client by default 2018-12-20 14:49:54 +01:00
ncteisen 7b1fc0faa2 Add max_results to ServerSockets 2018-12-11 08:24:40 -08:00
apolcyn 63c9e43c2a
Merge pull request #17295 from ganmacs/fix-misc
Fix ruby code style
2018-12-02 21:01:32 -08:00
ganmacs 79f58ec74e Use space 2018-11-26 19:51:07 +09:00
ganmacs b5ee54add3 Remove unused require 2018-11-26 19:50:50 +09:00
ganmacs bd1fdfaabe Return unimplemented
when calling a method which is server_streamer and is not implemented by user
2018-11-25 17:31:53 +09:00
Muxi Yan f3e4ae633e Regenerate projects 2018-11-19 15:24:53 -08:00
ncteisen 693f46841a Add GetServer to core 2018-10-24 17:31:30 -07:00
apolcyn da5d02fb4d
Merge pull request #16921 from apolcyn/move_package_options_test
Move ruby test's package_options.proto file to ruby-specific directory
2018-10-18 17:07:52 -07:00
Alexander Polcyn f6e8417627 Move package_options.proto file for ruby test 2018-10-17 19:44:52 -07:00
Vijay Pai a46ddf4a09 Remove grpc_use_signal which is no longer relevant 2018-10-10 08:38:15 -07:00
Noah Eisen a74885d478
Merge pull request #16760 from ncteisen/channelz-server-sockets
Channelz Part 8: Get Server Sockets
2018-10-09 11:19:49 -07:00
Stanley Cheung e5ce1e36e6 Regenerate projects 2018-10-08 15:50:50 -07:00
apolcyn 3f1c75208e
Merge pull request #16593 from iguchi1124/remove-duplicate-error
Ruby: remove duplicated `Unimplemented` error definition
2018-10-08 10:32:45 -07:00
ncteisen 3545d754d5 Channelz get server sockets support 2018-10-02 09:55:00 -07:00
ganmacs 8722714ae4 change var name to be consistent with others 2018-10-01 17:32:12 +09:00
apolcyn 2947946871
Merge pull request #15378 from ganmacs/fix-option-name
Change option name of client.rb
2018-09-26 21:24:59 -07:00
ncteisen 4fcf871806 Merge branch 'master' of https://github.com/grpc/grpc into channelz 2018-09-25 13:37:58 -07:00
Muxi Yan b522334d63
Merge pull request #16659 from grpc/security_func_signature
Update function signature in grpc_security
2018-09-21 08:07:34 -07:00
Vijay Pai 3ee2919623
Merge pull request #16646 from vjpai/callback_codegen_client_unary
EXPERIMENTAL: Codegen for callback client unary calls
2018-09-20 16:35:33 -07:00
Muxi Yan d0029bac14 generate_projects.sh 2018-09-20 11:35:57 -07:00
apolcyn 878703d6fa
Merge pull request #16653 from ganmacs/not-to-use-p-in-test
Use logger to suppress output debug output during test
2018-09-20 09:47:17 -07:00
apolcyn dc09ab5b37
Merge pull request #16642 from tenderlove/send-instead-of-method
Switch to `send` instead of `method(...).call`
2018-09-20 00:07:03 -07:00
Vijay Pai 9e6511ae2e Make the core callback interface API so that it can be used in generated code 2018-09-19 23:57:56 -07:00
ncteisen 0a650eae58 regenerate projects 2018-09-19 07:41:59 -07:00
ganmacs 50c31d18e5 Use logger to suppress output debug output during test 2018-09-19 19:06:46 +09:00
apolcyn 8ad90b42a7
Merge pull request #16477 from ganmacs/rescue-grpc-call-error
Rescue `GRPC::Core::CallError`  so that worker threads are not killed
2018-09-18 10:33:29 -07:00
Aaron Patterson d374ee9a4f
Switch to `send` instead of `method(...).call`
This commit switches `method(...).call` to `send`.  The call sites I
changed were all immediately calling `call` on the method object, then
throwing the method object away.  Using `send` should be equivalent and
will not allocate the intermediate `method` object.
2018-09-17 15:32:57 -07:00