René's URL Explorer Experiment


Title: Implement Alignment Support for Custom Extensions in Encoder/Decoder by eddig · Pull Request #245 · msgpack/msgpack-javascript · GitHub

Open Graph Title: Implement Alignment Support for Custom Extensions in Encoder/Decoder by eddig · Pull Request #245 · msgpack/msgpack-javascript

X Title: Implement Alignment Support for Custom Extensions in Encoder/Decoder by eddig · Pull Request #245 · msgpack/msgpack-javascript

Description: This update introduces a solution to handle data alignment in custom extensions, ensuring that encoded data is aligned in memory according to specified requirements. The main benefit of this approach is enabling zero-copy deserialization, which significantly enhances performance when working with data types like Float32Array that have strict alignment needs. Key Steps: Alignment Handling in Encoding: In the Encoder class, the code checks if an alignment requirement (align) is specified for the extension before encoding it. The necessary padding is calculated to align the data properly in memory. Padding bytes (0xc1, known as noop bytes) are inserted before the extension type to ensure the data starts at an aligned memory position. Padding Skipping in Decoding: The Decoder class is enhanced to recognize and skip padding bytes (0xc1) when decoding an extension. This ensures the actual extension type is correctly identified, regardless of any alignment padding added during encoding. Storing Alignment Information: The ExtensionCodec class is modified to store the alignment requirement for each registered extension. This alignment information is utilized during encoding to ensure that data is correctly aligned in memory. Modification of the ExtData Class: The ExtData class is extended to include an optional align property. This property stores the alignment requirement for each extension, allowing the encoder to handle data alignment appropriately.

Open Graph Description: This update introduces a solution to handle data alignment in custom extensions, ensuring that encoded data is aligned in memory according to specified requirements. The main benefit of this approa...

X Description: This update introduces a solution to handle data alignment in custom extensions, ensuring that encoded data is aligned in memory according to specified requirements. The main benefit of this approa...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ceb96c64-9f94-ebd2-0d86-1dade0b2eb01
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1E0:206F88:D834E9:11FC5AF:6A540EF4
html-safe-nonceafe389eb9a0918d1d07c0d666cc58f7bb5967fc799b2125fc40a7a50d4e0be36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUUwOjIwNkY4ODpEODM0RTk6MTFGQzVBRjo2QTU0MEVGNCIsInZpc2l0b3JfaWQiOiI2MzA2NzUwMzM3Mzc1Mjc2Nzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfd945889b6e8381fb6276ae894b781b6146f41ba390240df4c9f4f261f2ec72a
hovercard-subject-tagpull_request:2033937483
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/245/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:altThis update introduces a solution to handle data alignment in custom extensions, ensuring that encoded data is aligned in memory according to specified requirements. The main benefit of this approa...
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-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-javascript/pull/245/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-javascript%2Fpull%2F245%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%2F245%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/245/files
Reloadhttps://github.com/msgpack/msgpack-javascript/pull/245/files
Reloadhttps://github.com/msgpack/msgpack-javascript/pull/245/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/245/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
eddighttps://github.com/eddig
msgpack:mainhttps://github.com/msgpack/msgpack-javascript/tree/main
eddig:mainhttps://github.com/eddig/msgpack-javascript/tree/main
Conversation 6 https://github.com/msgpack/msgpack-javascript/pull/245
Commits 2 https://github.com/msgpack/msgpack-javascript/pull/245/commits
Checks 0 https://github.com/msgpack/msgpack-javascript/pull/245/checks
Files changed 5 https://github.com/msgpack/msgpack-javascript/pull/245/files
Implement Alignment Support for Custom Extensions in Encoder/Decoder https://github.com/msgpack/msgpack-javascript/pull/245/files#top
Show all changes 2 commits https://github.com/msgpack/msgpack-javascript/pull/245/files
2796aef Support data alignment in the custom extensions eddig Aug 23, 2024 https://github.com/msgpack/msgpack-javascript/pull/245/commits/2796aef949bf435bba4a50d1fab89ad80e03473e
c7e0d03 Merge branch 'main' into main gfx Jan 26, 2025 https://github.com/msgpack/msgpack-javascript/pull/245/commits/c7e0d0358b668907604cc3ea3fb8bcc4548071eb
Clear filters https://github.com/msgpack/msgpack-javascript/pull/245/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/245/files
Please reload this pagehttps://github.com/msgpack/msgpack-javascript/pull/245/files
Decoder.ts https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-16dbc5e69787775b89623a833818bd88951fe3fdf77c49e2161c14459e5e3717
Encoder.ts https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
ExtData.ts https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
ExtensionCodec.ts https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
ExtensionCodec.test.ts https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-ed5fdd7db901a55fb1bb3dba2dd3ec5aec46671d1133885f7c7c382ba4287d2d
src/Decoder.tshttps://github.com/msgpack/msgpack-javascript/pull/245/files#diff-16dbc5e69787775b89623a833818bd88951fe3fdf77c49e2161c14459e5e3717
View file https://github.com/eddig/msgpack-javascript/blob/c7e0d0358b668907604cc3ea3fb8bcc4548071eb/src/Decoder.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/245/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-16dbc5e69787775b89623a833818bd88951fe3fdf77c49e2161c14459e5e3717
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-16dbc5e69787775b89623a833818bd88951fe3fdf77c49e2161c14459e5e3717
src/Encoder.tshttps://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
View file https://github.com/eddig/msgpack-javascript/blob/c7e0d0358b668907604cc3ea3fb8bcc4548071eb/src/Encoder.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/245/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2b07fa9965c82a4be8829b5cdcaff0dbd4e71fe8e601e353efcd72eee2e0c243
src/ExtData.tshttps://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
View file https://github.com/eddig/msgpack-javascript/blob/c7e0d0358b668907604cc3ea3fb8bcc4548071eb/src/ExtData.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/245/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-2858be8b8ac6e8a91aa7ccb9da09506f87fe21f2f1895b03e9bae3788e3a6ce5
src/ExtensionCodec.tshttps://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
View file https://github.com/eddig/msgpack-javascript/blob/c7e0d0358b668907604cc3ea3fb8bcc4548071eb/src/ExtensionCodec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/245/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
https://github.com/msgpack/msgpack-javascript/pull/245/files#diff-97339fce8d99f21dda2fd6d02cde35e0562af2247be83ac1f4b85f5405b9fd1f
test/ExtensionCodec.test.tshttps://github.com/msgpack/msgpack-javascript/pull/245/files#diff-ed5fdd7db901a55fb1bb3dba2dd3ec5aec46671d1133885f7c7c382ba4287d2d
View file https://github.com/eddig/msgpack-javascript/blob/c7e0d0358b668907604cc3ea3fb8bcc4548071eb/test/ExtensionCodec.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-javascript/pull/245/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-javascript/pull/245/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.