- 16 5月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 8ce3c1e5, reversing changes made to f93da579. Reason: It slow down the running time. require "diffbench" load 'output_safety.rb' N = 10000 b = ActiveSupport::SafeBuffer.new("hello world") DiffBench.bm do report "capitalize in safe buffer" do N.times do b.capitalize end end end > git checkout 069ea45c; diffbench bench.rb; diffbench bench.rb;diffbench bench.rb;diffbench bench.rb;diffbench bench.rb;diffbench bench.rb;diffbench bench.rb; Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.009733) Before patch: 0.010000 0.000000 0.010000 ( 0.007702) Improvement: -26% Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.009768) Before patch: 0.010000 0.000000 0.010000 ( 0.007896) Improvement: -24% Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.009938) Before patch: 0.010000 0.000000 0.010000 ( 0.007768) Improvement: -28% Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.010001) Before patch: 0.010000 0.000000 0.010000 ( 0.007873) Improvement: -27% Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.009670) Before patch: 0.010000 0.000000 0.010000 ( 0.007800) Improvement: -24% Running benchmark with current working tree Checkout HEAD^ Running benchmark with HEAD^ Checkout to previous HEAD again user system total real ----------------------------------capitalize in safe buffer After patch: 0.010000 0.000000 0.010000 ( 0.009949) Before patch: 0.010000 0.000000 0.010000 ( 0.007752) Improvement: -28%
-
- 14 5月, 2013 2 次提交
-
-
由 aditya-kapoor 提交于
-
由 aditya-kapoor 提交于
-
- 05 3月, 2013 1 次提交
-
-
由 Aman Gupta 提交于
-
- 13 9月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 09 9月, 2012 1 次提交
-
-
由 Kalys Osmonov 提交于
-
- 01 8月, 2012 1 次提交
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 18 5月, 2012 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 17 5月, 2012 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 12 5月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 29 4月, 2012 2 次提交
-
-
由 Alexey Gaziev 提交于
-
由 Alexey Gaziev 提交于
-
- 02 3月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Logic in clone_empty method was dealing with old @dirty variable, which has changed by @html_safe in this commit: https://github.com/rails/rails/commit/139963c99a955520db6373343662e55f4d16dcd1 This was issuing a "not initialized variable" warning - related to: https://github.com/rails/rails/pull/5237 The logic applied by this method is already handled by the [] override, so there is no need to reset the variable here.
-
- 01 3月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 21 2月, 2012 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 02 2月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 01 2月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
All the logic is based on the HTML_ESCAPE constant available in ERB::Util, so it seems more logic to have the entire method there and just delegate the helper to use it.
-
- 05 1月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
- 21 12月, 2011 1 次提交
-
-
由 Guillermo Iguaran 提交于
-
- 12 12月, 2011 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
length user system total real before 6 0.010000 0.000000 0.010000 ( 0.012378) after 6 0.010000 0.000000 0.010000 ( 0.012866) before 60 0.040000 0.000000 0.040000 ( 0.046273) after 60 0.040000 0.000000 0.040000 ( 0.036421) before 600 0.390000 0.000000 0.390000 ( 0.390670) after 600 0.210000 0.000000 0.210000 ( 0.209094) before 6000 3.750000 0.000000 3.750000 ( 3.751008) after 6000 1.860000 0.000000 1.860000 ( 1.857901)
-
- 03 12月, 2011 1 次提交
-
-
由 Jon Jensen 提交于
Revert html_escape to do a single gsub again, but add the "n" flag (no language, i.e. not multi-byte) to protect against XSS via invalid utf8 Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 09 11月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 05 10月, 2011 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 25 9月, 2011 1 次提交
-
-
由 Alexey Vakhov 提交于
-
- 22 9月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 17 9月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 09 9月, 2011 2 次提交
-
-
由 José Valim 提交于
- 08 9月, 2011 4 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
"Safe Buffer" should either be the constant with the class name, or go in lower case. I've chosen to follow the same terminology that is used in the AS core extensiong guide, "safe string", though "safe buffer" is also used elsewhere, we should pick one.
-
由 Damien Mathieu 提交于
-
由 Damien Mathieu 提交于
-
- 17 8月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-