Files
nats-server/server
Ivan Kozlovic 9b7dab0548 Updates based on code review
- Add atomic in client to skip check in processInboundClientMsg()
  if value is 0. Avoids getting the lock in fast path if not needed.
- Have a timer per client instead of the global server list that
  was expiring: noticed a lot of contention there when running
  some perf/profiling tests. The timer is also not reset for
  every timestamp that is not yet expired since this too affects
  performance. Instead fires are regular interval and cleared
  when map is empty after a cycle.
- Move processing of gw map rely on its own function (in inbound msg).
  I have verified that this is inlined same way as when code was
  directly in processInboundClientMsg.
- Use string(subj[]) for prefix detection: I have verified that
  it is actually faster.
- Builds the RMSG with appends to local buffer in handleGatewayReply()
  instead of using fmt.Sprintf().

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-11-08 15:56:28 -07:00
..
2019-10-15 23:55:13 +08:00
2019-11-06 16:06:49 -07:00
2019-11-08 15:56:28 -07:00
2019-11-08 15:56:28 -07:00
2019-05-10 15:11:30 -07:00
2019-09-20 12:19:27 -06:00
2019-11-08 15:56:28 -07:00
2019-11-08 15:56:28 -07:00
2019-11-08 15:56:28 -07:00
2019-09-19 14:42:38 -06:00
2019-11-06 16:06:49 -07:00
2019-05-06 15:41:38 -07:00
2018-12-06 15:09:14 -08:00
2019-11-06 16:06:49 -07:00
2019-11-02 08:04:22 -07:00
2019-02-04 17:07:49 -08:00
2019-09-17 09:37:35 -07:00
2019-05-10 15:11:30 -07:00
2018-10-06 14:06:14 -07:00
2019-11-06 16:06:49 -07:00
2019-11-08 15:56:28 -07:00
2018-03-15 22:31:07 -07:00
2018-03-15 22:31:07 -07:00
2019-11-06 16:06:49 -07:00
2019-01-18 10:54:04 +08:00