Bugzilla – Attachment 76232 Details for
Bug 20975
Improve auto escaping performance
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
AutoEscaping - Template::Stash::AutoEscaping (escape all)
AutoEscaping---TemplateStashAutoEscaping-escape-al.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2018-06-21 14:03:54 UTC
(
hide
)
Description:
AutoEscaping - Template::Stash::AutoEscaping (escape all)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-06-21 14:03:54 UTC
Size:
1.38 KB
patch
obsolete
>From e61d06b4d3926b0312d4032155a0e6a172432e90 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Jun 2018 17:19:53 -0300 >Subject: [PATCH] AutoEscaping - Template::Stash::AutoEscaping (escape all) > >for x in 1 2 3 4 5; do time perl benchmark_AutoEscaping.pl; done >perl benchmark_AutoEscaping.pl 9.67s user 5.08s system 99% cpu 14.837 total >perl benchmark_AutoEscaping.pl 9.00s user 4.10s system 99% cpu 13.167 total >perl benchmark_AutoEscaping.pl 9.24s user 4.97s system 99% cpu 14.263 total >perl benchmark_AutoEscaping.pl 9.91s user 4.19s system 99% cpu 14.188 total >perl benchmark_AutoEscaping.pl 8.86s user 4.44s system 99% cpu 13.347 total > >https://bugs.koha-community.org/show_bug.cgi?id=20975 >--- > benchmark_AutoEscaping.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/benchmark_AutoEscaping.pl b/benchmark_AutoEscaping.pl >index 6ff8a174e0..65900517fb 100644 >--- a/benchmark_AutoEscaping.pl >+++ b/benchmark_AutoEscaping.pl >@@ -5,6 +5,7 @@ my $tt = Template->new( > { > ABSOLUTE => 1, > PLUGIN_BASE => 'Koha::Template::Plugin', >+ STASH => Template::Stash::AutoEscaping->new, > } > ); > >@@ -31,7 +32,7 @@ __DATA__ > [% pouet %] > <div style="display:none;"> > [% FOR l IN loop %] >- [% l.foo | html %] [% l.bar | html %] >+ [% l.foo %] [% l.bar %] > <br/> > [% END %] > </div> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20975
:
76230
|
76231
| 76232 |
76233
|
76234
|
76235