caelum/vraptor4 — pull request #239 by Turini (2013-10-28 14:55:24+00:00)
Title: Improving internal and custom interceptor accepts. Closes #216

Now we are creating 3 managed objects (app scoped) instead of 3 non-managed for each registered
interceptor. We no longer do those `container.intanceFor(...)` since this objects are managed
and natural injection is faster. I did a simple AB test to see some performance diference, looks good.
Time taken for tests before was *5.350 seconds*, and after this change: *2.791 seconds*

a simple description before:
```
Concurrency Level: 100
Time taken for tests: 5.350 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 4661000 bytes
HTML transferred: 4378000 bytes
Requests per second: 186.91 [#/sec] (mean)
Time per request: 535.005 [ms] (mean)
Time per request: 5.350 [ms] (mean, across all concurrent requests)
Transfer rate: 850.79 [Kbytes/sec] received
```
and after this change:
```
Concurrency Level: 100
Time taken for tests: 2.791 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 4661000 bytes
HTML transferred: 4378000 bytes
Requests per second: 358.31 [#/sec] (mean)
Time per request: 279.088 [ms] (mean)
Time per request: 2.791 [ms] (mean, across all concurrent requests)
Transfer rate: 1630.94 [Kbytes/sec] received
```
you can see entire comparation here: https://gist.github.com/Turini/7159488