Changeset 61667 in spip-zone


Ignore:
Timestamp:
May 25, 2012, 9:46:22 AM (7 years ago)
Author:
fil@…
Message:

une version moins gourmande du test de gourmandise (cerdic)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/revisions/inc/diff.php

    r61665 r61667  
    3030        // Insertion des points
    3131        asort($s);
    32         foreach (array_slice($s,0,400) as $y => $c) {
     32        $max = 400;
     33        foreach ($s as $y => $c) {
     34                if ($max-- < 0) break;  # eviter l'explosion memoire des tres gros diff
    3335                for ($len = $max_len; $len > 0; $len--) {
    3436                        if ($paths_ymin[$len] < $y) {
Note: See TracChangeset for help on using the changeset viewer.