diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2014-02-02 23:06:16 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2014-02-02 23:06:16 +0000 |
commit | aa5627083d2336313db0a8a3d745e6e6b9229fe1 (patch) | |
tree | 62dd21b11bf1bc5b491c73f2d65adc751ef8bae6 | |
parent | 6dc5dafb54a852614c85267e964c541e9b087d34 (diff) | |
download | rabbitmq-server-bug25817.tar.gz |
don't intercept performance critical methodsbug25817
This improves 'PerfTest' by ~10% when running with one scheduler
-rw-r--r-- | src/rabbit_channel_interceptor.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rabbit_channel_interceptor.erl b/src/rabbit_channel_interceptor.erl index 2bd22579..a19d4b18 100644 --- a/src/rabbit_channel_interceptor.erl +++ b/src/rabbit_channel_interceptor.erl @@ -51,8 +51,11 @@ behaviour_info(_Other) -> %%---------------------------------------------------------------------------- -intercept_method(#'basic.publish'{} = M, _VHost) -> - M; +intercept_method(#'basic.publish'{} = M, _VHost) -> M; +intercept_method(#'basic.ack'{} = M, _VHost) -> M; +intercept_method(#'basic.nack'{} = M, _VHost) -> M; +intercept_method(#'basic.reject'{} = M, _VHost) -> M; +intercept_method(#'basic.credit'{} = M, _VHost) -> M; intercept_method(M, VHost) -> intercept_method(M, VHost, select(rabbit_misc:method_record_type(M))). @@ -88,4 +91,4 @@ validate_method(M, M2) -> rabbit_misc:method_record_type(M) =:= rabbit_misc:method_record_type(M2). internal_error(Format, Args) -> - rabbit_misc:protocol_error(internal_error, Format, Args).
\ No newline at end of file + rabbit_misc:protocol_error(internal_error, Format, Args). |