aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
Commit message (Collapse)AuthorAgeFilesLines
* Stop using method missing for singleton delegation.Aaron Patterson2013-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This saved about 46 array allocations per request on an extremely simple application. The delegation happened in the notification subsystem which is a hotspot, so this should result in even more savings with larger apps. Squashed commit of the following: commit 41eef0d1479526f7de25fd4391d98e61c126d9f5 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:32:31 2013 -0800 speed up notifications commit 586b4a18656f66fb2c518fb8e8fee66a016e8ae6 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:31:05 2013 -0800 speed up runtime registry methods commit b67d074cb4314df9a88438f785868cef77e583d7 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:28:12 2013 -0800 change method name and make it public
* Documentation: Notifications queue does not run in a thread.David Butler2013-05-201-2/+2
|
* hides the per thread registry instance, and caches singleton methodsXavier Noria2013-04-131-4/+0
| | | | | | | | | | | | Existing code was delegating to the instance with delegate macro calls, or invoking the instance method to reach the object and call its instance methods. But the point is to have a clean class-level interface where the thread local instance is hidden in the implementation. References #11c6973. References #10198.
* Changed the ScopeRegistry and the InstrumentationRegistry to use thewangjohn2013-04-091-5/+4
| | | | PerThreadRegistry module.
* Creating an object to consolidate thread locals which hold thewangjohn2013-04-081-1/+27
| | | | instrumenters for the AS::Notifications module.
* 1.9 hash syntax in activesupportAvnerCohen2012-11-101-9/+9
|
* Improve documentation for subscribe blockGrant Hutchins & Sabrina Staedt2012-09-271-1/+11
|
* update AS docs [ci skip]Francesco Rodriguez2012-09-171-1/+2
|
* update some AS code examples to 1.9 hash syntax [ci skip]Francesco Rodriguez2012-09-121-8/+8
|
* move fanout back to a global variable, add a mutex for safetyAaron Patterson2012-06-191-26/+5
|
* remove global cacheAaron Patterson2012-06-191-7/+2
|
* reduce thread localsAaron Patterson2012-06-191-3/+20
|
* make the fanout notifier local to the current threadAaron Patterson2012-06-191-4/+8
|
* Documentation: make it clearer that subscribers are not notified ↵Schnittchen2012-06-161-1/+1
| | | | asynchronously, but saved for later use.
* Add documentation to detail passing of an object as the secondMichael de Silva2012-04-131-0/+27
| | | | | | | parameter passed to the ActiveSupport::Notifications.subscribe method instead of a block Example code sample and output is provided as well.
* Fix further typos in ActiveSupport::NotificationsMichael de Silva2012-04-131-4/+4
|
* Fix rdoc typo in ActiveSupport::NotificationsMichael de Silva2012-04-131-1/+1
|
* remove duplicate requires. thanks @atamboAaron Patterson2012-03-211-1/+0
|
* push the autoloads up to requiresAaron Patterson2012-03-211-4/+4
|
* warns against using temporary subscribersXavier Noria2012-01-121-0/+4
|
* fixes typoXavier Noria2011-11-051-1/+1
|
* implements AS::Notifications.subscribed, which provides subscriptions to ↵Xavier Noria2011-11-051-0/+41
| | | | events while a block runs
* expands the documentation of AS::NotificationsXavier Noria2011-11-051-14/+46
|
* Removing unnecessary require, solve 'circular require considered harmful' ↵Jon Leighton2011-08-161-2/+0
| | | | warning.
* fanout unsubscribe only accepted one argument, so taking *args here is ↵Aaron Patterson2011-02-091-2/+2
| | | | probably bad
* just use an attr_accessor so we do not pay ||= on every notification callAaron Patterson2011-02-091-5/+3
|
* speed up notification publishing by writing the delegate methodAaron Patterson2011-02-091-1/+4
|
* edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-301-3/+3
|
* fisting warningAaron Patterson2010-07-251-1/+1
|
* Revert the previous three commits.José Valim2010-07-251-13/+3
| | | | | | * AS::Notifications#instrument should not measure anything, it is not its responsibility; * Adding another argument to AS::Notifications#instrument API needs to be properly discussed;
* use a hash to collect optional statistics about the instrumentationAaron Patterson2010-07-251-3/+13
|
* Performance optimizations to handle cases of instrumentors that are not ↵Carlhuda2010-07-221-2/+22
| | | | listened to. Also, fix a possible concurrency issue.
* Notifier API == Fanout API, so replace Notifier with Fanout as they quack ↵Aaron Patterson2010-07-181-23/+1
| | | | the same
* bind method is not needed, so goodbye! <3 <3 <3Aaron Patterson2010-07-181-1/+1
|
* Remove documentation reference to AS::Notifications::Event#result because it ↵Hongli Lai (Phusion)2010-06-171-1/+0
| | | | has been removed.
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
|
* Optimize AS::Notifications to remember which subscribers don't match and not ↵Carlhuda2010-03-011-1/+1
| | | | run them. This will allow notifications that are only useful in dev or testing to run efficiently in production.
* You can unsubscribe a subscriberCarlhuda2010-03-011-0/+4
|
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-2/+2
|
* Remove instrument! and require thread from AS::Notifications.José Valim2010-02-041-1/+1
|
* Add ActionDispatch::Notifications middleware.José Valim2010-01-171-1/+1
|
* Yield the payload notifications for further modification (like adding the ↵José Valim2010-01-151-1/+1
| | | | result).
* Add instrument! to notifications which adds the result to the payload.José Valim2010-01-141-1/+1
|
* instrumenter should be accessible from ActiveSupport::Notifications.José Valim2010-01-061-8/+6
|
* Notifications: extract central Notifier, cordon off the internal Fanout ↵Jeremy Kemper2009-11-281-132/+16
| | | | implementation, and segregate instrumentation concerns
* Remark that Listener is an implementation detailJeremy Kemper2009-11-281-1/+2
|
* Expose a simple Queue#wait to block until all notifications are drainedJeremy Kemper2009-11-281-2/+7
|
* Revert "Create SyncListener. Since they do not rely on Thread, they can be ↵Jeremy Kemper2009-11-281-58/+34
| | | | | | | | used on Google App Engine." Take a step back on this API direction. This reverts commit 8104f65c3225453d13307c3c2733c2a8f99e491a.
* Create SyncListener. Since they do not rely on Thread, they can be used on ↵José Valim2009-11-231-34/+58
| | | | | | Google App Engine. Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Notifications: queue.drained? for testability in place of brittle sleepsJeremy Kemper2009-11-131-9/+7
|