mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Gary Pendergast
709329b6df
Revisions: Improve performance of
WP_Text_Diff_Renderer_Table
.
`WP_Text_Diff_Renderer_Table` is used to generate the diff view in revisions, but there were some cases that could cause it to take excessive amounts of time to run. Some noteable cases include: - When a large number of new lines were inserted in the middle of the post from one revision to the next. - When both revisions contain >100 lines. - When either revision contains a lot of long lines. In one extreme test case, the diff view took over a minute to generate. With this change, it now takes less than a second. See #35667. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43775 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.2%
SCSS
0.8%
HTML
0.7%