Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid looping through subscribers when unsubscribing with a subscriber object. | Guo Xiang Tan | 2014-06-01 | 1 | -5/+10 |
| | |||||
* | Update documentation to reflect unsubscription with name. | Guo Xiang Tan | 2014-06-01 | 1 | -2/+2 |
| | |||||
* | use a thread local rather than a queue so events are in the right order | Aaron Patterson | 2013-10-30 | 1 | -7/+4 |
| | |||||
* | use a queue rather than a list. fixes #12069 | Aaron Patterson | 2013-10-28 | 1 | -1/+1 |
| | |||||
* | Bug fix: Evented notification subscribers can handle published events | Carl Lerche | 2013-05-17 | 1 | -0/+7 |
| | |||||
* | Replace some global Hash usages with the new thread safe cache. | thedarkone | 2012-12-14 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler. | ||||
* | Evented notifications take priority over Timed notifications | Eric Saxby | 2012-08-11 | 1 | -3/+3 |
| | | | | | | | In cases where a notification subscriber includes methods to support both Evented and Timed events, Evented should take priority over Timed. This allows subscribers to be backwards compatible (older Rails only allows Timed events) while defaulting to newer behavior. | ||||
* | move fanout back to a global variable, add a mutex for safety | Aaron Patterson | 2012-06-19 | 1 | -7/+17 |
| | |||||
* | subscribers are per thread, so remove the nested hash access | Aaron Patterson | 2012-06-19 | 1 | -5/+3 |
| | |||||
* | documenting concurrency rules for the Fanout class | Aaron Patterson | 2012-06-19 | 1 | -0/+3 |
| | |||||
* | evented listeners can subscribe to any message | Aaron Patterson | 2012-03-21 | 1 | -9/+27 |
| | |||||
* | evented subscribers work | Aaron Patterson | 2012-03-21 | 1 | -6/+10 |
| | |||||
* | start / finish events are sent by the instrumenter | Aaron Patterson | 2012-03-21 | 1 | -4/+38 |
| | |||||
* | split subscribers based on pattern type | Aaron Patterson | 2012-03-21 | 1 | -13/+31 |
| | |||||
* | Remove deprecation from AS::Deprecation behavior, some minor cleanups | Carlos Antonio da Silva | 2012-03-16 | 1 | -4/+3 |
| | | | | | | | | | * Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block | ||||
* | minor changes | Vijay Dev | 2011-04-27 | 1 | -3/+3 |
| | |||||
* | Performance optimizations to handle cases of instrumentors that are not ↵ | Carlhuda | 2010-07-22 | 1 | -3/+8 |
| | | | | listened to. Also, fix a possible concurrency issue. | ||||
* | Minor performance improvment in notifications/fanout and ↵ | Daniel Guettler | 2010-07-19 | 1 | -7/+5 |
| | | | | active_record/log_subscriber [#5098 state:open] | ||||
* | avoid call to Array#first | Aaron Patterson | 2010-07-19 | 1 | -3/+3 |
| | |||||
* | subscriber does not need to be a block, but an object that responds to #call | Aaron Patterson | 2010-07-18 | 1 | -5/+5 |
| | |||||
* | tap the subscriber for easier return value | Aaron Patterson | 2010-07-18 | 1 | -2/+3 |
| | |||||
* | bind method is not needed, so goodbye! <3 <3 <3 | Aaron Patterson | 2010-07-18 | 1 | -7/+1 |
| | |||||
* | drained? is never called | Aaron Patterson | 2010-07-17 | 1 | -4/+0 |
| | |||||
* | private method is not needed | Aaron Patterson | 2010-07-17 | 1 | -12/+2 |
| | |||||
* | removing Binding class | Aaron Patterson | 2010-07-17 | 1 | -14/+4 |
| | |||||
* | use === to avoid regular expression creation, and speed up string comparison | Aaron Patterson | 2010-07-17 | 1 | -9/+3 |
| | |||||
* | allow unsubscribe by name or subscription [#4433 state:resolved] | David Chelimsky | 2010-04-24 | 1 | -5/+15 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Mark bang instrumentations as something that you shuold not be listening to. | José Valim | 2010-03-17 | 1 | -1/+1 |
| | |||||
* | Optimize AS::Notifications to remember which subscribers don't match and not ↵ | Carlhuda | 2010-03-01 | 1 | -3/+12 |
| | | | | run them. This will allow notifications that are only useful in dev or testing to run efficiently in production. | ||||
* | You can unsubscribe a subscriber | Carlhuda | 2010-03-01 | 1 | -3/+8 |
| | |||||
* | AS::Subscriber is not a LogSubscriber | Carlhuda | 2010-03-01 | 1 | -2/+2 |
| | |||||
* | Rename Rails::Subscriber to Rails::LogSubscriber | Prem Sichanugrist | 2010-02-16 | 1 | -5/+5 |
| | |||||
* | Remove instrument! and require thread from AS::Notifications. | José Valim | 2010-02-04 | 1 | -3/+1 |
| | |||||
* | Default to sync instrumentation. | José Valim | 2010-01-21 | 1 | -33/+3 |
| | |||||
* | Notifications: synchronous fanout queue pushes events to subscribers rather ↵ | Jeremy Kemper | 2009-11-29 | 1 | -22/+39 |
| | | | | than having them concurrently pull | ||||
* | Notifications: extract central Notifier, cordon off the internal Fanout ↵ | Jeremy Kemper | 2009-11-28 | 1 | -0/+84 |
implementation, and segregate instrumentation concerns |