| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-21 00:35:02 GMT-0800 |
| Commit | 43e811aaec71272280bb67e71ce2255009a93455 |
| Parent | cb62633 |
| private function iterateInflated( | ||
| string $path, | ||
| - callable $processor | ||
| + callable $processor, | ||
| + int $bufferSize = 16384 | ||
| ): void { | ||
| $reader = BufferedFileReader::open( $path ); | ||
| if( $reader->isOpen() && $infl !== false ) { | ||
| while( !$reader->eof() ) { | ||
| - $chunk = $reader->read( 16384 ); | ||
| + $chunk = $reader->read( $bufferSize ); | ||
| $inflated = inflate_add( $infl, $chunk ); | ||
| return strlen( $buf ) < $length; | ||
| - } | ||
| + }, | ||
| + 8192 | ||
| ); | ||
| } | ||
| Delta | 5 lines added, 3 lines removed, 2-line increase |
|---|