<?php
declare(strict_types=1);

require_once __DIR__.'/../__CondorcetAutoload.php';

///
    $number_of_votes = 100_000_000;
    $number_of_candidates = 8;
///

$candidateName = 'A';

$candidates = [];

for ($i=0; $i < $number_of_candidates ; $i++) :
    $candidates[] = $candidateName++;
endfor;

$file = fopen(__DIR__.'/large.votes','w+');
$cache = '';

for ($i=0; $i < $number_of_votes; $i++) :

    shuffle($candidates);

    $cache .= implode('>',$candidates)."\n";

    if (strlen($cache) > 5_000_000) :
        fwrite($file,$cache);
        $cache = '';
    endif;

endfor;

fclose($file);
<?php
declare(strict_types=1);

require_once __DIR__.'/../__CondorcetAutoload.php';

///
    $number_of_votes = 100_000_000;
    $number_of_candidates = 8;
///

$candidateName = 'A';

$candidates = [];

for ($i=0; $i < $number_of_candidates ; $i++) :
    $candidates[] = $candidateName++;
endfor;

$file = fopen(__DIR__.'/large.votes','w+');
$cache = '';

for ($i=0; $i < $number_of_votes; $i++) :

    shuffle($candidates);

    $cache .= implode('>',$candidates)."\n";

    if (strlen($cache) > 5_000_000) :
        fwrite($file,$cache);
        $cache = '';
    endif;

endfor;

fwrite($file,$cache);

fclose($file);
Fix large Input file generator
Fix large Input file generator
