|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2016 PHP 7.0.14
-
+- Core:
+ . Fixded bug #72736 (Slow performance when fetching large dataset with mysqli
+ / PDO). (Dmitry)
10 Nov 2016 PHP 7.0.13
{
zend_mm_chunk *chunk = heap->main_chunk;
int page_num, len;
+ int steps = 0;
while (1) {
if (UNEXPECTED(chunk->free_pages < pages_count)) {
goto found;
} else {
chunk = chunk->next;
+ steps++;
}
}
found:
+ if (steps > 2 && pages_count < 8) {
+ /* move chunk into the head of the linked-list */
+ chunk->prev->next = chunk->next;
+ chunk->next->prev = chunk->prev;
+ chunk->next = heap->main_chunk->next;
+ chunk->prev = heap->main_chunk;
+ chunk->prev->next = chunk;
+ chunk->next->prev = chunk;
+ }
/* mark run as allocated */
chunk->free_pages -= pages_count;
zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);