picoclaw/pkg/channels
mattn 8a1fb03974
Perf/precompile regex (#687)
* perf: pre-compile regexes at package level

Move regexp.MustCompile calls from inside methods to package-level
variables in web.go (7 regexes) and loader.go (2 regexes).
This avoids repeated compilation on every invocation.

Amp-Thread-ID: https://ampcode.com/threads/T-019c79c3-ea1c-7471-b09d-be90ba0e1ca0
Co-authored-by: Amp <amp@ampcode.com>

* perf: pre-compile regexes at package level

* retain the helpful comment

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-02-26 20:44:03 +11:00
..
base.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
base_test.go style: fix gofmt formatting (CRLF -> LF) 2026-02-14 11:21:47 +09:00
dingtalk.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
discord.go enable wastedassign 2026-02-25 21:31:07 +11:00
feishu_32.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
feishu_64.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
line.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
maixcam.go Merge branch 'main' into fix-formatting 2026-02-20 20:02:53 +02:00
manager.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
onebot.go enable whitespace 2026-02-25 21:31:07 +11:00
qq.go translate Chinese comments 2026-02-24 10:27:49 +11:00
slack.go enable nakedret 2026-02-25 21:31:07 +11:00
slack_test.go refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
telegram.go Perf/precompile regex (#687) 2026-02-26 20:44:03 +11:00
telegram_commands.go refactor(config): rename model field to model_name 2026-02-23 16:55:06 +08:00
wecom.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
wecom_app.go refactor: cleanup dead code and turn on dead code detection in CI (#515) 2026-02-24 21:52:25 +08:00
wecom_app_test.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
wecom_test.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
whatsapp.go enable bodyclose 2026-02-25 21:14:19 +11:00