[TASK] Make DiffUtility faster and much more scaleable.
The method DiffUtility->explodeStringIntoWords() calls array_merge() inside a loop. The cost of constantly doing a function invocation and merging arrays needlessly slows the method and the whole diff utility. Moving the array merging outside the loop, the method becomes faster and able to handle much larger input. Change-Id: I4c2d21cff9b18392e89e316fec9dc615e715a073 Resolves: #50318 Releases: 6.2, 6.1, 6.0 Reviewed-on: https://review.typo3.org/22508 Reviewed-by: Markus Klein Tested-by: Markus Klein Reviewed-by: Jigal van Hemert Tested-by: Jigal van Hemert Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters
Please register or sign in to comment