>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #528
Update issue details
Title *
Description
**Files:** - api/blueprints/v1/steps.py:377 - search regex compiled per-request - api/blueprints/v1/apps.py:69-70 - semver regex compiled per-call - api/blueprints/v1/apps.py:147 - app name validation regex per-call - api/blueprints/v1/workflows.py:81-86 - DSL main block regex per-call **Problem:** Regex patterns compiled on every request/call instead of module level. **Fix:** Move all regex to module level constants: ```python # Module level _SEMVER_PATTERN = re.compile(r"^(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9]+))?$") _APP_NAME_PATTERN = re.compile(r"^[a-z][a-z0-9_]{2,63}$") _MAIN_BLOCK_PATTERN = re.compile(r"if\s+__name__\s*==\s*[\"']__main__[\"']\s*:.*", re.DOTALL) ``` **Impact:** 10-20% speedup for affected endpoints.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel