picoclaw/pkg/skills
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
..
clawhub_registry.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
clawhub_registry_test.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
installer.go feat(skills): add retry for HTTP requests in skill installer (#261) 2026-02-26 20:35:26 +11:00
loader.go Perf/precompile regex (#687) 2026-02-26 20:44:03 +11:00
loader_test.go perf: refactoring collecting skills (#688) 2026-02-24 10:07:09 +11:00
registry.go Feature: Implement Skill Discovery - With Clawhub Integration and Caching (#332) 2026-02-20 18:55:04 +08:00
registry_test.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
search_cache.go Feature: Implement Skill Discovery - With Clawhub Integration and Caching (#332) 2026-02-20 18:55:04 +08:00
search_cache_test.go Feature: Implement Skill Discovery - With Clawhub Integration and Caching (#332) 2026-02-20 18:55:04 +08:00