Bugzilla – Attachment 76233 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 - Do not escape using ignore_escape
AutoEscaping---Do-not-escape-using-ignoreescape.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2018-06-21 14:03:59 UTC
(
hide
)
Description:
AutoEscaping - Do not escape using ignore_escape
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-06-21 14:03:59 UTC
Size:
1.35 KB
patch
obsolete
>From da195d1476c40d708d0f8b7da6fd55a27df6cb9f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Jun 2018 17:21:41 -0300 >Subject: [PATCH] AutoEscaping - Do not escape using ignore_escape > >The variable are not escaped (let's suppose it's what we want) > >for x in 1 2 3 4 5; do time perl benchmark_AutoEscaping.pl; done >perl benchmark_AutoEscaping.pl 7.37s user 4.12s system 99% cpu 11.557 total >perl benchmark_AutoEscaping.pl 7.15s user 4.24s system 99% cpu 11.438 total >perl benchmark_AutoEscaping.pl 6.99s user 3.70s system 99% cpu 10.751 total >perl benchmark_AutoEscaping.pl 6.32s user 3.76s system 99% cpu 10.120 total >perl benchmark_AutoEscaping.pl 6.32s user 3.71s system 99% cpu 10.057 total > >https://bugs.koha-community.org/show_bug.cgi?id=20975 >--- > benchmark_AutoEscaping.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/benchmark_AutoEscaping.pl b/benchmark_AutoEscaping.pl >index 65900517fb..674162d398 100644 >--- a/benchmark_AutoEscaping.pl >+++ b/benchmark_AutoEscaping.pl >@@ -5,7 +5,9 @@ my $tt = Template->new( > { > ABSOLUTE => 1, > PLUGIN_BASE => 'Koha::Template::Plugin', >- STASH => Template::Stash::AutoEscaping->new, >+ STASH => Template::Stash::AutoEscaping->new( >+ { ignore_escape => [qw(l)] } >+ ), > } > ); > >-- >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