tem_mr_search 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.4. Disabled Nagle's algorithm to shave off 100ms in query times.
2
+
1
3
  v0.2.3. Slightly more robust communication code in the RPC server/client.
2
4
 
3
5
  v0.2.2. Switched to smartcard API 0.4.
@@ -8,6 +8,7 @@ if ARGV.length < 2 || ARGV.length >= 3
8
8
  exit
9
9
  end
10
10
 
11
+ Thread.abort_on_exception = true
11
12
  db_file, cluster_file, server_port = ARGV[0], ARGV[1], ARGV[2]
12
13
  server = Tem::Mr::Search::Server.new db_file, cluster_file, server_port
13
14
  server.serve_loop
@@ -36,7 +36,7 @@ class Client
36
36
  # Issues a request against a Map-Reduce server and returns the response.
37
37
  def self.issue_request(server_addr, request)
38
38
  socket = Zerg::Support::SocketFactory.socket :out_addr => server_addr,
39
- :out_port => Server::DEFAULT_PORT
39
+ :out_port => Server::DEFAULT_PORT, :no_delay => true
40
40
  socket.extend OPAdapter
41
41
  socket.send_object request
42
42
  response = socket.recv_object response
@@ -20,7 +20,7 @@ class Server
20
20
  @port = port || DEFAULT_PORT
21
21
 
22
22
  @listen_socket = Zerg::Support::SocketFactory.socket :in_port => @port,
23
- :reuse_addr => true
23
+ :reuse_addr => true, :no_delay => true
24
24
  end
25
25
 
26
26
  # Reinitializes the TEM cluster connections.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tem_mr_search}
5
- s.version = "0.2.3"
5
+ s.version = "0.2.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tem_mr_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan