Title: src: refacor `MallocedBuffer` to it's usage scope by refack · Pull Request #23641 · nodejs/node · GitHub
Open Graph Title: src: refacor `MallocedBuffer` to it's usage scope by refack · Pull Request #23641 · nodejs/node
X Title: src: refacor `MallocedBuffer` to it's usage scope by refack · Pull Request #23641 · nodejs/node
Description: As discussed in #23543 (review). MallocedBuffer is an unknown quantity as compared to std::unique_ptr. MallocedBuffer is a new utility and is node specific, so it's semantics are not clear to me, so I assume to others as well. It's maturity is unknown (Ref: #23434) It's ambiguous if MallocedBuffer::size is in units of T or number of byte std::unique_ptr is free of runtime cost (except for its dtor), while MallocedBuffer at minimum carries the runtime cost of construction, and the memory cost of MallocedBuffer::size. And probably most important to me - readability. std::unique_ptr is standardized and well documented. MallocedBuffer is only documented by its code. While refactoring is seems like it has no unit test coverage. Ref: #23543 (review) Ref: #23434 CI: https://ci.nodejs.org/job/node-test-pull-request/17821 Checklist make -j4 test (UNIX), or vcbuild test (Windows) passes commit message follows commit guidelines
Open Graph Description: As discussed in #23543 (review). MallocedBuffer is an unknown quantity as compared to std::unique_ptr. MallocedBuffer is a new utility and is node specific, so it's semantics are not clear to ...
X Description: As discussed in #23543 (review). MallocedBuffer is an unknown quantity as compared to std::unique_ptr. MallocedBuffer is a new utility and is node specific, so it's semantics are not clear...
Opengraph URL: https://github.com/nodejs/node/pull/23641
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4cefa6b6-281a-2e6f-fcae-0ced64fad628 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B1B0:23810A:219F86D:2B4AC05:69928B1D |
| html-safe-nonce | 99a0d8be97c8412c0a82ae6c907c50a51fa5efe2b779c99fff8e41178c9bb8a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUIwOjIzODEwQToyMTlGODZEOjJCNEFDMDU6Njk5MjhCMUQiLCJ2aXNpdG9yX2lkIjoiNDgxMjA3MDQxNjYzMjk0MTM0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f830ff7023afbf5470ce49f902e3726564deadb2966f392c142187dd387962ee |
| hovercard-subject-tag | pull_request:222662313 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/23641/checks |
| twitter:image | https://avatars.githubusercontent.com/u/96947?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/96947?s=400&v=4 |
| og:image:alt | As discussed in #23543 (review). MallocedBuffer is an unknown quantity as compared to std::unique_ptr. MallocedBuffer is a new utility and is node specific, so it's semantics are not clear to ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width