Skip to content

Conversation

devnexen
Copy link
Member

pre-allocated size for the former and packed array.

Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest seems ok

@@ -1948,6 +1949,7 @@ PHP_METHOD(SQLite3Result, fetchArray)
}

array_init(return_value);
zend_hash_real_init_packed(Z_ARRVAL_P(return_value));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed, the loop below can also add associative keys in some cases

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right ...missed it

pre-allocated size for the former and packed array.
@devnexen devnexen force-pushed the sqlite3_array_optim branch from c3c2a7d to cbc2b8b Compare April 21, 2025 14:37
@devnexen devnexen merged commit bd8c770 into php:master Apr 21, 2025
9 checks passed
@devnexen devnexen deleted the sqlite3_array_optim branch April 21, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants