1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model
Sam a46dcb7454 PERF: avoid allocating column names where possible
When requesting columns names from database adapters AR:Result
would dup/freeze column names, this prefers using fstrings which
cuts down on repeat allocations

Attributes that are retained keep these fstrings around for the long
term

Note, this has the highest impact on "short" result sets, eg: Topic.first where you can void allocating the number of columns * String.
2018-06-06 09:50:58 +10:00
..
attribute Active Model: Use private attr_reader 2018-02-26 06:16:24 +09:00
attribute_set Active Model: Use private attr_reader 2018-02-26 06:16:24 +09:00
locale
serializers
type Ensure casting by boolean attribute when querying 2018-05-29 05:22:31 +09:00
validations Parse raw value only when a value came from user in numericality validator 2018-05-28 10:12:15 +09:00
attribute.rb Active Model: Use private attr_reader 2018-02-26 06:16:24 +09:00
attribute_assignment.rb Alias assign_attributes to attributes= for AttributeAssignment 2018-02-28 19:58:45 +09:00
attribute_methods.rb Merge pull request #29788 from kamipo/remove_unused_mutex_m 2017-07-17 13:54:37 -04:00
attribute_mutation_tracker.rb Merge pull request #32498 from eugeneius/mutation_tracker_merge_changes 2018-04-10 13:18:34 +09:00
attribute_set.rb deep_dup is used in AttributeSet#deep_dup 2018-01-13 13:09:31 +09:00
attributes.rb PERF: avoid allocating column names where possible 2018-06-06 09:50:58 +10:00
callbacks.rb Use tt in doc for ActiveRecord [ci skip] 2017-08-27 14:01:29 +09:00
conversion.rb
dirty.rb Don't call changes in changes_applied unless required 2018-03-06 15:11:23 -07:00
errors.rb fix bug on added? method 2017-11-13 17:27:47 +01:00
forbidden_attributes_protection.rb
gem_version.rb Start Rails 6.0 development!!! 2018-01-30 18:51:17 -05:00
lint.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
model.rb
naming.rb Clarify intentions around method redefinitions 2017-09-01 14:27:13 +09:30
railtie.rb
secure_password.rb Talk about bytes not characters 2017-07-31 17:42:43 -04:00
serialization.rb Merge pull request #28270 from mmangino/dont_ignore_seralization_options 2018-02-27 23:42:15 +09:00
translation.rb
type.rb Fix doc typo [ci skip] 2017-12-12 16:34:19 -05:00
validations.rb Refactor to Array(options[:on]) only once in defining validations 2018-01-01 06:18:39 +09:00
validator.rb
version.rb