Skip to content

perf(unhead): client only capo sorting - #626

Merged
harlan-zw merged 5 commits into
v3from
perf/client-only-capo
Jan 3, 2026
Merged

harlan-zw merged 5 commits into
v3from
perf/client-only-capo

Conversation

@harlan-zw

@harlan-zw harlan-zw commented Jan 2, 2026 •

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Only apply capo sorting to server-rendered tags for smaller bundles and quicker tag resolving.

Client side does not need capo sorting as either the SSR has already optimized or we're an SPA (in which we'd want a custom algorithm maybe).

This drops the client build 1kb (0.3kb gzip) - 10% smaller.

@harlan-zw harlan-zw mentioned this pull request Jan 2, 2026
@harlan-zw
harlan-zw merged commit 4bc604c into v3 Jan 3, 2026
@harlan-zw harlan-zw mentioned this pull request Apr 4, 2026
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