Skip to content

Commit 5dc5975

Browse files
committed
Use ZendMM page size minus zend_string overhead
Change recommended by Christoph. Probably a little better performance wise I have to guess.
1 parent d45858c commit 5dc5975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ext/pdo_odbc/odbc_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "php_pdo_odbc_int.h"
2828

2929
/* Buffer size; bigger columns than this become a "long column" */
30-
#define LONG_COLUMN_BUFFER_SIZE 2048
30+
#define LONG_COLUMN_BUFFER_SIZE (ZEND_MM_PAGE_SIZE- ZSTR_MAX_OVERHEAD)
3131

3232
enum pdo_odbc_conv_result {
3333
PDO_ODBC_CONV_NOT_REQUIRED,

0 commit comments

Comments
 (0)