Commit d4c9b5c
sqlite: avoid extra copy for large text binds
When binding UTF-8 strings to prepared statements, transfer ownership of
malloc-backed Utf8Value buffers to SQLite to avoid an extra copy for
large strings. Use sqlite3_bind_blob64() when binding BLOB parameters.
PR-URL: #61580
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>1 parent 28905b9 commit d4c9b5cCopy full SHA for d4c9b5c
2 files changed
+61-8Lines changed: 61 additions & 8 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+26-8Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2261 | 2261 | |
2262 | 2262 | |
2263 | 2263 | |
| 2264 | + |
2264 | 2265 | |
2265 | 2266 | |
2266 | | - |
| 2267 | + |
2267 | 2268 | |
2268 | 2269 | |
2269 | | - |
2270 | | - |
2271 | | - |
| 2270 | + |
| 2271 | + |
| 2272 | + |
| 2273 | + |
| 2274 | + |
| 2275 | + |
| 2276 | + |
| 2277 | + |
| 2278 | + |
| 2279 | + |
| 2280 | + |
| 2281 | + |
| 2282 | + |
| 2283 | + |
| 2284 | + |
| 2285 | + |
| 2286 | + |
2272 | 2287 | |
2273 | 2288 | |
2274 | 2289 | |
2275 | 2290 | |
2276 | | - |
2277 | | - |
| 2291 | + |
| 2292 | + |
| 2293 | + |
| 2294 | + |
| 2295 | + |
2278 | 2296 | |
2279 | 2297 | |
2280 | 2298 | |
| ||
2285 | 2303 | |
2286 | 2304 | |
2287 | 2305 | |
2288 | | - |
| 2306 | + |
2289 | 2307 | |
2290 | 2308 | |
2291 | 2309 | |
2292 | 2310 | |
2293 | 2311 | |
2294 | | - |
| 2312 | + |
2295 | 2313 | |
2296 | 2314 | |
2297 | 2315 | |
|
Collapse file
test/parallel/test-sqlite-data-types.js
Copy file name to clipboardExpand all lines: test/parallel/test-sqlite-data-types.js+35Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
82 | 82 | |
83 | 83 | |
84 | 84 | |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
85 | 120 | |
86 | 121 | |
87 | 122 | |
|
0 commit comments