Browse files

Performance improvements and simplifications

- Monitors are now stored in an ETS table. Simple profiling revealed
  that a lot of time was being taken in `lists:keytake/3` looking up the
  refs by pid. This should provide O(1) constant time lookup.
- Workers are now no longer required to handle `stop` messages. Workers
  are terminated using `supervisor:terminate_child/2` and the shutdown
  strategy is no longer brutal_kill.
- Other various cleanups.
  • Loading branch information...
1 parent f2bfc2b commit c7fbad1328c492e1aa3c34795a4faf6d7618c0d2 @devinus devinus committed Apr 27, 2012
Showing with 145 additions and 201 deletions.
  1. +144 −156 src/poolboy.erl
  2. +1 −1 src/poolboy_sup.erl
  3. +0 −2 test/poolboy_test_worker.erl
  4. +0 −42 test/poolboy_tests.erl
Oops, something went wrong.

0 comments on commit c7fbad1

Please sign in to comment.