>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #469
Update issue details
Title *
Description
engine/services/activity_worker.py:120-125 uses sorted() for LRU cache eviction. sorted() is O(N log N) when we only need the oldest K items. For large caches, this is wasteful. FIX: Use heapq.nsmallest() which is O(N log K) where K is items to evict: ```python import heapq oldest_entries = heapq.nsmallest(evict_count, cache.items(), key=lambda x: x[1][1]) ```
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