ID: 19749 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Performance problem Operating System: All PHP Version: 4CVS-2002-10-04 Assigned To: wez New Comment:
Yup, we should do it in chunks of some fraction of memory-limit, I guess. quarters, fiths, tenths? It should be a decently big chunk size so there will be a good chance that many files fit into a single chunk for optimal speed. Previous Comments: ------------------------------------------------------------------------ [2002-10-05 06:34:33] [EMAIL PROTECTED] How do we tell when a file is too big? We can check if the file size exceeds the memory limit, but surely we should be checking for some size smaller than that so that we don't exceed the limit (by too much). ------------------------------------------------------------------------ [2002-10-04 03:21:22] [EMAIL PROTECTED] We should check the memory limit before mmap()'ing a huge file in _php_stream_passthru() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19749&edit=1