1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support
Jeremy Kemper b474d06d5e Perf: save ~9% of object allocations on heavy requests.
The per-thread registry is keyed on the class name, and each request for
the class name returns a new string. This is in the hot path for a lot
of Active Record behavior, so we easily accumulate thousands of repeated
strings.

To fix, we simply cache the key when the class is first extended with
the module.

TODO: Eliminate this module. The per-thread instance concept is common,
but this technique confuses and obfuscates.
2013-12-12 18:53:32 -07:00
..
cache Copy-edit the parent commit 2013-12-12 14:09:04 -02:00
concurrency
core_ext doc: date/conversions.rb should talk about date format not time format. 2013-12-10 11:09:31 +01:00
dependencies
deprecation renames the :abort deprecation behaviour to :raise 2013-08-13 01:44:52 +02:00
inflector Replace with gsub! in ActiveSupport::Inflector. 2013-12-10 11:25:06 -06:00
json JSON: speed up date/time encoding 2013-12-11 23:32:33 -07:00
locale
log_subscriber Add missing require 2013-07-01 20:49:17 -03:00
multibyte Initializing Codepoint object with default values 2013-09-20 12:50:15 +05:30
notifications use a thread local rather than a queue so events are in the right order 2013-10-30 10:33:36 -07:00
number_helper Nodoc missing number helper classes in AS [ci skip] 2013-12-11 20:01:54 -02:00
testing Merge pull request #13260 from arunagw/using-parallelize_me 2013-12-10 14:17:42 -08:00
values Add support for localized date references 2013-12-03 10:37:01 -05:00
xml_mini
all.rb Clean up require ‘active_support/deprecation’ and remove circular require 2013-11-14 12:59:56 +04:00
backtrace_cleaner.rb Fix BacktraceCleaner#noise for multiple silencers. 2013-06-20 19:54:32 +01:00
benchmarkable.rb Remove ActiveSupport::Benchmarkable#silence was deprecated. 2013-06-01 21:23:19 +09:00
builder.rb
cache.rb Remove deprecated cattr_* requires 2013-12-03 00:28:15 +02:00
callbacks.rb Merge pull request #13287 from aayushkhandelwal11/typo_rectified 2013-12-11 23:32:04 -08:00
concern.rb Use symbols instead of strings 2013-06-10 23:22:08 -04:00
configurable.rb
core_ext.rb Remove deprecated Logger core extensions (core_ext/logger.rb) 2013-07-03 13:54:34 -03:00
dependencies.rb better error message for constants autoloaded from anonymous modules [fixes #13204] 2013-12-06 19:18:10 +01:00
deprecation.rb Changing deprecation_horizon to be Rails 4.2 2013-08-24 23:34:43 -04:00
descendants_tracker.rb
duration.rb Fix segmentation fault in Ruby 2.0.0-p353. 2013-11-30 15:12:12 +02:00
file_update_checker.rb clean up some warnings on trunk ruby 2013-10-31 11:47:51 -07:00
file_watcher.rb
gzip.rb
hash_with_indifferent_access.rb Change syntax format for example returned values 2013-11-11 13:53:54 -05:00
i18n.rb
i18n_railtie.rb set i18n.enforce_available_locales before i18n.default_locale. 2013-12-05 13:19:51 +01:00
inflections.rb Don't have a cow, man! 2013-07-30 08:13:03 +01:00
inflector.rb
json.rb
key_generator.rb
lazy_load_hooks.rb
log_subscriber.rb
logger.rb Remove deprecated cattr_* requires 2013-12-03 00:28:15 +02:00
logger_silence.rb
message_encryptor.rb Use Base.strict_decode64 instead of Base.decode64 just as we do in encoding; 2013-05-16 02:19:33 +05:30
message_verifier.rb PR #10635 introduces rescue from ArgumentError thrown by Base64.strict_decode64. 2013-12-12 22:15:42 +05:30
multibyte.rb
notifications.rb Stop using method missing for singleton delegation. 2013-11-06 16:32:47 -08:00
number_helper.rb Nodoc missing number helper classes in AS [ci skip] 2013-12-11 20:01:54 -02:00
option_merger.rb
ordered_hash.rb
ordered_options.rb Fixed grammar error in ordered_options documention. 2013-08-17 04:42:15 -07:00
per_thread_registry.rb Perf: save ~9% of object allocations on heavy requests. 2013-12-12 18:53:32 -07:00
proxy_object.rb
rails.rb
railtie.rb
rescuable.rb Remove deprecated Proc#bind with no replacement. 2013-07-01 22:38:28 -03:00
string_inquirer.rb
subscriber.rb Stop using method missing for singleton delegation. 2013-11-06 16:32:47 -08:00
tagged_logging.rb added missing require 2013-12-02 19:52:01 +01:00
test_case.rb Add #travel and #travel_to to AS::TestCase 2013-11-20 16:05:02 +07:00
time.rb
time_with_zone.rb Fix AS::TimeWithZone#as_json docs 2013-11-07 11:18:52 +02:00
version.rb
xml_mini.rb Revert "Removing obsolete html tags in favor of markdown code block" 2013-08-06 22:16:03 +03:00