René's URL Explorer Experiment


Title: Allow the data alignment to support zero-copy decoding by eddig · Pull Request #248 · msgpack/msgpack-javascript · GitHub

Open Graph Title: Allow the data alignment to support zero-copy decoding by eddig · Pull Request #248 · msgpack/msgpack-javascript

X Title: Allow the data alignment to support zero-copy decoding by eddig · Pull Request #248 · msgpack/msgpack-javascript

Description: An alternative solution for the data alignment proposed in that PR In that proposal, the encode function of the extension codec could return a function that will be called by Encoder at the moment of building the final buffer. The function receives the position of the data in the buffer. The encoder expects to receive data that will be then added to the buffer at the provided position. Users can add the padding bytes straight into the data at the encoding phase and calculate the data offset at the decoding phase depending on the chosen padding+data format. That solution has some advantages over the one mentioned above. It doesn't change the message pack format. The padding "lives" in the data part. It allows a user to decide how to align the data. It doesn't break the compatibility with the existing formats. The drawback is that to resolve the ambiguity of the final size of the data the size field always takes 4 bytes, independent of how big the actual data is. That could be highlighted in the documentation to warn users. That is only a deal in case of returning a function instead of the actual data from the encode function, so the existing users won't be affected.

Open Graph Description: An alternative solution for the data alignment proposed in that PR In that proposal, the encode function of the extension codec could return a function that will be called by Encoder at the moment ...

X Description: An alternative solution for the data alignment proposed in that PR In that proposal, the encode function of the extension codec could return a function that will be called by Encoder at the moment ...

Opengraph URL: https://github.com/msgpack/msgpack-javascript/pull/248

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5057dd9c-13c4-6dc1-63c0-af1568eea247
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB2D4:95C7C:350DF8:472DCA:6A540467
html-safe-nonce8f05be7aaddc27550fe0d54f967511877aea338c467e3fbae95deb59468e2483
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkQ0Ojk1QzdDOjM1MERGODo0NzJEQ0E6NkE1NDA0NjciLCJ2aXNpdG9yX2lkIjoiNzcwMzk2NjUyODA1Njg1MzYwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd3c3aeb31f0ca44d77087dda1ebb4ed0c2e23b6a635a9af8e179b55f8308b518
hovercard-subject-tagpull_request:2300717508
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/msgpack/msgpack-javascript/pull/248/files
twitter:imagehttps://avatars.githubusercontent.com/u/4124316?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4124316?s=400&v=4
og:image:altAn alternative solution for the data alignment proposed in that PR In that proposal, the encode function of the extension codec could return a function that will be called by Encoder at the moment ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id2761854
octolytics-dimension-repository_nwomsgpack/msgpack-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2761854
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-javascript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-javascript/pull/248/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-javascript%2Fpull%2F248%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-javascript%2Fpull%2F248%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=msgpack%2Fmsgpack-javascript
Reloadhttps://github.com/msgpack/msgpack-javascript/pull/248/files
Reloadhttps://github.com/msgpack/msgpack-javascript/pull/248/files
Reloadhttps://github.com/msgpack/msgpack-javascript/pull/248/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/248/files
msgpack https://github.com/msgpack
msgpack-javascripthttps://github.com/msgpack/msgpack-javascript
Notifications https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-javascript
Fork 177 https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-javascript
Star 1.6k https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-javascript
Code https://github.com/msgpack/msgpack-javascript
Issues 17 https://github.com/msgpack/msgpack-javascript/issues
Pull requests 5 https://github.com/msgpack/msgpack-javascript/pulls
Discussions https://github.com/msgpack/msgpack-javascript/discussions
Actions https://github.com/msgpack/msgpack-javascript/actions
Security and quality 0 https://github.com/msgpack/msgpack-javascript/security
Insights https://github.com/msgpack/msgpack-javascript/pulse
Code https://github.com/msgpack/msgpack-javascript
Issues https://github.com/msgpack/msgpack-javascript/issues
Pull requests https://github.com/msgpack/msgpack-javascript/pulls
Discussions https://github.com/msgpack/msgpack-javascript/discussions
Actions https://github.com/msgpack/msgpack-javascript/actions
Security and quality https://github.com/msgpack/msgpack-javascript/security
Insights https://github.com/msgpack/msgpack-javascript/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmsgpack%2Fmsgpack-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-javascript%2Fissues%2Fnew%2Fchoose
gfxhttps://github.com/gfx
msgpack:mainhttps://github.com/msgpack/msgpack-javascript/tree/main
eddig:alignment-fnhttps://github.com/eddig/msgpack-javascript/tree/alignment-fn
Conversation 7 https://github.com/msgpack/msgpack-javascript/pull/248
Commits 2 https://github.com/msgpack/msgpack-javascript/pull/248/commits
Checks 0 https://github.com/msgpack/msgpack-javascript/pull/248/checks
Files changed https://github.com/msgpack/msgpack-javascript/pull/248/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/248/files
Allow the data alignment to support zero-copy decoding https://github.com/msgpack/msgpack-javascript/pull/248/files#top
Show all changes 2 commits https://github.com/msgpack/msgpack-javascript/pull/248/files
fbcd36b Allow the data alignment to support zero-copy decoding eddig Jan 27, 2025 https://github.com/msgpack/msgpack-javascript/pull/248/commits/fbcd36b4b150176dd03e3689f94ad3ce46b938a7
1f9e335 Add a benchmark for TypedArray with zero-copy extension eddig Feb 3, 2025 https://github.com/msgpack/msgpack-javascript/pull/248/commits/1f9e33503d5eb94744d2fb4301628739d0f4362e
Clear filters https://github.com/msgpack/msgpack-javascript/pull/248/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/248/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/248/files
msgpack-benchmark.js https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
Encoder.ts https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
ExtData.ts https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
ExtensionCodec.ts https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
ExtensionCodec.test.ts https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-ed5fdd7db901a55fb1bb3dba2dd3ec5aec46671d1133885f7c7c382ba4287d2d
benchmark/msgpack-benchmark.jshttps://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
View file https://github.com/eddig/msgpack-javascript/blob/1f9e33503d5eb94744d2fb4301628739d0f4362e/benchmark/msgpack-benchmark.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/248/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-30bd3d9d883f8576fa9923d0fe27e625ab1da4165c45fceeb1d6d157efcdd470
src/Encoder.tshttps://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
View file https://github.com/eddig/msgpack-javascript/blob/1f9e33503d5eb94744d2fb4301628739d0f4362e/src/Encoder.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/248/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
src/ExtData.tshttps://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
View file https://github.com/eddig/msgpack-javascript/blob/1f9e33503d5eb94744d2fb4301628739d0f4362e/src/ExtData.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/248/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
src/ExtensionCodec.tshttps://github.com/msgpack/msgpack-javascript/pull/248/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
View file https://github.com/eddig/msgpack-javascript/blob/1f9e33503d5eb94744d2fb4301628739d0f4362e/src/ExtensionCodec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/248/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
test/ExtensionCodec.test.tshttps://github.com/msgpack/msgpack-javascript/pull/248/files#diff-ed5fdd7db901a55fb1bb3dba2dd3ec5aec46671d1133885f7c7c382ba4287d2d
View file https://github.com/eddig/msgpack-javascript/blob/1f9e33503d5eb94744d2fb4301628739d0f4362e/test/ExtensionCodec.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/248/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/248/files#diff-ed5fdd7db901a55fb1bb3dba2dd3ec5aec46671d1133885f7c7c382ba4287d2d
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.