[php-src] PR #25655: ext/pdo_sqlite: Avoid copying bound strings and LOBs
| From: | iliaal | Date: | Sun, 22 Nov 2026 17:23:14 +0000 |
| Subject: | [php-src] PR #25655: ext/pdo_sqlite: Avoid copying bound strings and LOBs | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40901@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25655
Author: iliaal
Retain the bound
zend_string until SQLite releases it, as Nora suggested in
php/php-src#25597. This avoids a copy each time PDO SQLite binds a text or LOB parameter.
With SQLite 3.37.2, binding and inserting 96 values of 1 MiB each into an in-memory database took
14.5% less time for text and 12.4% less for BLOBs. These are medians across 18 paired runs,
excluding the transaction commit.