summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2014-02-02 23:06:16 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2014-02-02 23:06:16 +0000
commit1ecb5b9ea5993a0ad654eb8aeafda7fb445238d3 (patch)
tree62dd21b11bf1bc5b491c73f2d65adc751ef8bae6
parenteefbc57b7839b2650a561ff3b9db12af9760aaa9 (diff)
downloadrabbitmq-server-git-1ecb5b9ea5993a0ad654eb8aeafda7fb445238d3.tar.gz
don't intercept performance critical methods
This improves 'PerfTest' by ~10% when running with one scheduler
-rw-r--r--src/rabbit_channel_interceptor.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rabbit_channel_interceptor.erl b/src/rabbit_channel_interceptor.erl
index 2bd225798b..a19d4b18d1 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).