[TASK] Replace JavaScriptEncoder with json_encode() 45/26545/12
authorMichiel Roos <michiel@maxserv.nl>
Sun, 22 Dec 2013 18:51:21 +0000 (19:51 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 28 Jan 2014 23:38:22 +0000 (00:38 +0100)
commit6cd6d3b31232c7c6a8abf884746a96956aca363e
treec31b4e5c8b70facf604c6b850fd4973937ec55c1
parent1e89ca44ca051c4ec13257a91a3ef7b0db54f027
[TASK] Replace JavaScriptEncoder with json_encode()

The JavaScriptEncoder class is used a lot in the TYPO3 backend. It does
expensive character conversions, character by character.

It would improve performance a lot if we use PHP native json_encode to do
the encoding for us.

Change-Id: I3cb3bd6d887d49565fda496f9b13852cbeb9dfa1
Resolves: #54560
Releases: 6.2
Reviewed-on: https://review.typo3.org/26545
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Michiel Roos
Tested-by: Michiel Roos
Reviewed-by: Marcin Sągol
Tested-by: Marcin Sągol
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Utility/DebugUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php