1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview
schneems 1bd578ffe6 Don’t allocate array on no args
When no dependencies are present to be digested there is no reason to build an array just to turn around and turn it back into a string.

The dependencies array is not mutated in this method so we can use the same empty array across all invocations.

Total allocated: 791402 bytes (7294 objects)
Total allocated: 777442 bytes (7132 objects)

(791402 - 777442) / 791402.0 # => 1.76 % speed improvement
2018-09-07 17:33:10 -05:00
..
app/assets/javascripts Throw if ujs loaded twice 2018-07-31 22:16:02 +09:00
bin Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
lib Don’t allocate array on no args 2018-09-07 17:33:10 -05:00
test Don’t allocate array on no args 2018-09-07 17:33:10 -05:00
.gitignore Clean up and consolidate .gitignores 2018-02-17 14:26:19 -08:00
actionview.gemspec Rails 6 requires Ruby 2.4.1+ 2018-02-17 15:34:57 -08:00
blade.yml
CHANGELOG.md Formatting CHANGELOGs [ci skip] 2018-09-07 07:59:19 +09:00
coffeelint.json
MIT-LICENSE Bump license years for 2018 2017-12-31 22:36:55 +09:00
package.json Update coffeelint to 2.1.0 2018-08-13 10:22:25 +09:00
Rakefile Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
README.rdoc Fix typos and add a few suggestions 2017-11-28 19:27:43 +01:00
RUNNING_UJS_TESTS.rdoc Fix typos and add a few suggestions 2017-11-28 19:27:43 +01:00
RUNNING_UNIT_TESTS.rdoc Fix typos and add a few suggestions 2017-11-28 19:27:43 +01:00

= Action View

Action View is a framework for handling view template lookup and rendering, and provides
view helpers that assist when building HTML forms, Atom feeds and more.
Template formats that Action View handles are ERB (embedded Ruby, typically
used to inline short Ruby snippets inside HTML), and XML Builder.

== Download and installation

The latest version of Action View can be installed with RubyGems:

  $ gem install actionview

Source code can be downloaded as part of the Rails project on GitHub:

* https://github.com/rails/rails/tree/master/actionview


== License

Action View is released under the MIT license:

* https://opensource.org/licenses/MIT


== Support

API documentation is at

* http://api.rubyonrails.org

Bug reports for the Ruby on Rails project can be filed here:

* https://github.com/rails/rails/issues

Feature requests should be discussed on the rails-core mailing list here:

* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core