Skip to content

Commit 55821d0

Browse files
committed
add varint gem to the README and remove STDERR spam
1 parent 32913ab commit 55821d0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ If you want to compile .proto files to ruby, you'll need `protoc` version >= 2.2
2929
installed in the environment where you will be compiling them.
3030
You do not need `protoc` installed to use the generated `.pb.rb` files.
3131

32+
For greater performance, consider installing the varint gem as well.
33+
This optional gem builds a small C extension to make parsing protocol buffers
34+
faster. If your application uses a Gemfile, add varint to the Gemfile
35+
alongside ruby-protocol-buffers.
36+
3237
## Example
3338

3439
Given the file test.proto:

lib/protocol_buffers/runtime/varint.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class ProtocolBuffers::Varint
5858
extend ::Varint
5959
end
6060
rescue LoadError
61-
STDERR.puts "Notice: C extension varint not loaded. For optimal performance consider installing the varint gem."
6261
class ProtocolBuffers::Varint
6362
extend ::ProtocolBuffers::VarintPure
6463
end

0 commit comments

Comments
 (0)