>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #514
Update issue details
Title *
Description
**File:** engine/activity_context.py:151-160 **Problem:** Pattern `r"\{\{([^}]+)\}\}"` is compiled on every call to `resolve_variable_references()`. This is a hot path during workflow execution. **Severity:** HIGH **Fix:** Pre-compile at module level: ```python _VARIABLE_REF_PATTERN = re.compile(r"\{\{([^}]+)\}\}") def resolve_variable_references(self, text: str) -> str: def replacer(match: re.Match[str]) -> str: var_name = match.group(1).strip() var_value = self.get_variable(var_name) return str(var_value) if var_value is not None else "" return _VARIABLE_REF_PATTERN.sub(replacer, text) ``` **Impact:** 10-20% speedup for variable-heavy workflows.
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