Skip to content

perf: pre-compile session-key regex#1697

Closed
Ray0907 wants to merge 1 commit intoopenclaw:mainfrom
Ray0907:perf/pre-compile-session-key-regex
Closed

perf: pre-compile session-key regex#1697
Ray0907 wants to merge 1 commit intoopenclaw:mainfrom
Ray0907:perf/pre-compile-session-key-regex

Conversation

@Ray0907
Copy link
Copy Markdown
Contributor

@Ray0907 Ray0907 commented Jan 25, 2026

Summary

  • Pre-compile regex patterns in session-key normalization functions to avoid repeated compilation on
    every call

Test plan

  • pnpm test src/routing/session-key.test.ts passes

thewilloftheshadow added a commit that referenced this pull request Jan 26, 2026
Co-authored-by: Ray Tien <ray0907@users.noreply.github.com>
@thewilloftheshadow
Copy link
Copy Markdown
Member

Squash-merged into main.

  • Squash commit: 73507e8
  • Included: precompiled session key regexes + changelog entry (thanks)
  • Tests: pnpm lint && pnpm build && pnpm test (lint failed in existing src/line/* types)

@thewilloftheshadow
Copy link
Copy Markdown
Member

Closed after squash-merge to main (commit 73507e8).

zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Co-authored-by: Ray Tien <ray0907@users.noreply.github.com>
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.

2 participants