Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use ArrayBuffers instead of Node Buffer#40

Draft
beeequeue wants to merge 3 commits into
mainbeeequeue/binary-util:mainfrom
arraybufferbeeequeue/binary-util:arraybufferCopy head branch name to clipboard
Draft

Use ArrayBuffers instead of Node Buffer#40
beeequeue wants to merge 3 commits into
mainbeeequeue/binary-util:mainfrom
arraybufferbeeequeue/binary-util:arraybufferCopy head branch name to clipboard

Conversation

@beeequeue

@beeequeue beeequeue commented Feb 1, 2026

Copy link
Copy Markdown
Owner

this pr uses arraybuffers instead of node's buffers for the operations, allowing browser usage.

im not sure if this is a good idea, i want to at least benchmark both versions to make sure its not ungodly slower

having benchmarked, decoding using buffer is 1.7x faster than using arraybuffers. in browsers it would presumably still be slower with a polyfill

@github-actions

github-actions Bot commented Feb 1, 2026

Copy link
Copy Markdown
Contributor

⚠️ Duplicate Dependencies (found: 1, threshold: 2)

📦 Package 📋 Versions
escape-string-regexp
3 versions
  • root@
    • @antfu/eslint-config@8.2.0
      • eslint-plugin-unicorn@64.0.0
        • clean-regexp@1.0.0
          • escape-string-regexp@1.0.5

  • root@
    • @antfu/eslint-config@8.2.0
      • @e18e/eslint-plugin@0.3.0
        • eslint-plugin-depend@1.5.0
          • eslint@10.3.0
            • escape-string-regexp@4.0.0

  • root@
    • @antfu/eslint-config@8.2.0
      • eslint-plugin-yml@3.3.2
        • escape-string-regexp@5.0.0

💡 To find out what depends on a specific package, run: pnpm -r why example-package

⚠️ Package Size Increase

📦 Package 📏 Base Size 📏 Source Size 📈 Size Change
binary-util 5.2 kB 5.2 kB +6 B

@beeequeue beeequeue force-pushed the arraybuffer branch 5 times, most recently from 2ddfcfd to 446d28f Compare February 1, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.