CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 02:47:12 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neovim/neovim.git
etag: W/"4f9bb07ffee5cd119574d197b9f771c7"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=zGfd43ZqL8kbbrest7F4slBeHQChi8UaULybDmlQvkCha%2BY3D5QqA6nppWGPyt7dy2WQVzwyKxyuhKqCzhZF4ETUDhyssLfqKaGTc14oL8NkMdDTO7XQ203XBbn7xn7yc4Ihdw6W6J2bGyq7ZL%2B0aXYPcf6PoVpIehT22c7Fn4HKyiAckBmRws04cJ7%2B%2BYKaHdTHG4PMmH9v1ecSvZOWbTuLS0GMU%2Fpc4QRyE4v8SC3oZ53s%2Buogp2b%2FNGC9mDPt705VSBeb4NEbroRwelTNbg%3D%3D--1ExxGAD5A76SCN5i--J3Ot8jmVkAPQInuUZ%2B2cfw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.578881345.1753757232; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:47:12 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:47:12 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B4BC:136EFA:1ECE23:2D8176:68883630
perf(api): avoid spurious allocations when converting small objects · neovim/neovim@705e8f1 · GitHub
Copy file name to clipboardExpand all lines: src/nvim/api/private/helpers.c
Copy file name to clipboardExpand all lines: src/nvim/msgpack_rpc/helpers.c
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit 705e8f1
committed
perf(api): avoid spurious allocations when converting small objects
Converter functions use a heap-allocated stack to handle complex
nested objects. However, these are often called with simple,
primitive values like integers or bools wrapped in an Object.
Avoid the memory allocation in this case using kvec_withinit_t1 parent 469652d commit 705e8f1Copy full SHA for 705e8f1
File tree
Expand file treeCollapse file tree
3 files changed
+47
-45
lines changedFilter options
- src/nvim
- api/private
- lua
- msgpack_rpc
Expand file treeCollapse file tree
3 files changed
+47
-45
lines changedsrc/nvim/api/private/helpers.c
Copy file name to clipboardExpand all lines: src/nvim/api/private/helpers.c+14-16Lines changed: 14 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 |
| - | |
| 424 | + | |
425 | 425 |
| |
426 | 426 |
| |
427 |
| - | |
| 427 | + | |
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
432 |
| - | |
| 432 | + | |
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
440 |
| - | |
441 |
| - | |
442 |
| - | |
| 439 | + | |
443 | 440 |
| |
444 | 441 |
| |
445 | 442 |
| |
| |||
458 | 455 |
| |
459 | 456 |
| |
460 | 457 |
| |
461 |
| - | |
| 458 | + | |
462 | 459 |
| |
463 | 460 |
| |
464 |
| - | |
465 |
| - | |
| 461 | + | |
| 462 | + | |
466 | 463 |
| |
467 | 464 |
| |
468 | 465 |
| |
469 | 466 |
| |
470 | 467 |
| |
471 |
| - | |
| 468 | + | |
472 | 469 |
| |
473 | 470 |
| |
474 | 471 |
| |
| |||
510 | 507 |
| |
511 | 508 |
| |
512 | 509 |
| |
513 |
| - | |
| 510 | + | |
514 | 511 |
| |
515 | 512 |
| |
516 | 513 |
| |
| |||
618 | 615 |
| |
619 | 616 |
| |
620 | 617 |
| |
621 |
| - | |
| 618 | + | |
| 619 | + | |
622 | 620 |
| |
623 | 621 |
| |
624 | 622 |
| |
625 | 623 |
| |
626 | 624 |
| |
627 | 625 |
| |
628 |
| - | |
| 626 | + | |
629 | 627 |
| |
630 | 628 |
| |
631 | 629 |
| |
|
+21-19Lines changed: 21 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
200 |
| - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 |
| |
202 | 203 |
| |
203 | 204 |
| |
| |||
234 | 235 |
| |
235 | 236 |
| |
236 | 237 |
| |
237 |
| - | |
| 238 | + | |
238 | 239 |
| |
239 | 240 |
| |
240 | 241 |
| |
| |||
247 | 248 |
| |
248 | 249 |
| |
249 | 250 |
| |
250 |
| - | |
| 251 | + | |
251 | 252 |
| |
252 | 253 |
| |
253 | 254 |
| |
| |||
265 | 266 |
| |
266 | 267 |
| |
267 | 268 |
| |
268 |
| - | |
| 269 | + | |
269 | 270 |
| |
270 | 271 |
| |
271 | 272 |
| |
| |||
343 | 344 |
| |
344 | 345 |
| |
345 | 346 |
| |
346 |
| - | |
| 347 | + | |
347 | 348 |
| |
348 | 349 |
| |
349 | 350 |
| |
| |||
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 |
| - | |
| 377 | + | |
377 | 378 |
| |
378 | 379 |
| |
379 | 380 |
| |
| |||
434 | 435 |
| |
435 | 436 |
| |
436 | 437 |
| |
437 |
| - | |
| 438 | + | |
438 | 439 |
| |
439 | 440 |
| |
440 | 441 |
| |
| |||
1060 | 1061 |
| |
1061 | 1062 |
| |
1062 | 1063 |
| |
1063 |
| - | |
1064 |
| - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1065 | 1067 |
| |
1066 |
| - | |
1067 |
| - | |
1068 |
| - | |
1069 |
| - | |
1070 | 1068 |
| |
1071 | 1069 |
| |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1072 | 1074 |
| |
1073 | 1075 |
| |
1074 | 1076 |
| |
| |||
1095 | 1097 |
| |
1096 | 1098 |
| |
1097 | 1099 |
| |
1098 |
| - | |
| 1100 | + | |
1099 | 1101 |
| |
1100 | 1102 |
| |
1101 | 1103 |
| |
| |||
1117 | 1119 |
| |
1118 | 1120 |
| |
1119 | 1121 |
| |
1120 |
| - | |
| 1122 | + | |
1121 | 1123 |
| |
1122 | 1124 |
| |
1123 | 1125 |
| |
| |||
1169 | 1171 |
| |
1170 | 1172 |
| |
1171 | 1173 |
| |
1172 |
| - | |
| 1174 | + | |
1173 | 1175 |
| |
1174 | 1176 |
| |
1175 | 1177 |
| |
| |||
1185 | 1187 |
| |
1186 | 1188 |
| |
1187 | 1189 |
| |
1188 |
| - | |
| 1190 | + | |
1189 | 1191 |
| |
1190 | 1192 |
| |
1191 | 1193 |
| |
| |||
1239 | 1241 |
| |
1240 | 1242 |
| |
1241 | 1243 |
| |
1242 |
| - | |
| 1244 | + | |
1243 | 1245 |
| |
1244 | 1246 |
| |
1245 | 1247 |
| |
|
src/nvim/msgpack_rpc/helpers.c
Copy file name to clipboardExpand all lines: src/nvim/msgpack_rpc/helpers.c+12-10Lines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
90 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
| |||
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
158 |
| - | |
| 159 | + | |
159 | 160 |
| |
160 | 161 |
| |
161 | 162 |
| |
| |||
209 | 210 |
| |
210 | 211 |
| |
211 | 212 |
| |
212 |
| - | |
| 213 | + | |
213 | 214 |
| |
214 | 215 |
| |
215 | 216 |
| |
| |||
265 | 266 |
| |
266 | 267 |
| |
267 | 268 |
| |
268 |
| - | |
| 269 | + | |
269 | 270 |
| |
270 | 271 |
| |
271 | 272 |
| |
| |||
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
378 |
| - | |
379 |
| - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
380 | 382 |
| |
381 | 383 |
| |
382 | 384 |
| |
| |||
428 | 430 |
| |
429 | 431 |
| |
430 | 432 |
| |
431 |
| - | |
| 433 | + | |
432 | 434 |
| |
433 | 435 |
| |
434 | 436 |
| |
| |||
451 | 453 |
| |
452 | 454 |
| |
453 | 455 |
| |
454 |
| - | |
| 456 | + | |
455 | 457 |
| |
456 | 458 |
| |
457 | 459 |
| |
| |||
468 | 470 |
| |
469 | 471 |
| |
470 | 472 |
| |
471 |
| - | |
| 473 | + | |
472 | 474 |
| |
473 | 475 |
| |
474 | 476 |
| |
|
You can’t perform that action at this time.
0 commit comments