aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-01-12 14:57:58 -0800
committerXavier Noria <fxn@hashref.com>2012-01-12 14:59:08 -0800
commita59269d9990ea579610641736e89e6560015b6d8 (patch)
tree51e6d39dcc9179921263c67575bf6501afc50c4a /activesupport
parent9c993cb348a37563c0ab7c12ded9c21938cc6781 (diff)
downloadrails-a59269d9990ea579610641736e89e6560015b6d8.tar.gz
rails-a59269d9990ea579610641736e89e6560015b6d8.tar.bz2
rails-a59269d9990ea579610641736e89e6560015b6d8.zip
warns against using temporary subscribers
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/notifications.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb
index f549d2fff3..13f675c654 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -68,6 +68,10 @@ module ActiveSupport
# Sometimes you do not want to subscribe to an event for the entire life of
# the application. There are two ways to unsubscribe.
#
+ # WARNING: The instrumentation framework is designed for long-running subscribers,
+ # use this feature sparingly because it wipes some internal caches and that has
+ # a negative impact on performance.
+ #
# === Subscribe While a Block Runs
#
# You can subscribe to some event temporarily while some block runs. For