perf: reduce use of to_list in py_image_layer - #1442
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 3 reviews per rolling hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe image layer implementation now preserves separate symlink mapping functions for source, interpreter, and rule-group files. The tar action applies each mapper to its corresponding files while retaining ordered precedence and directory tree inputs. ChangesSymlink mapping
Estimated code review effort: 3 (Moderate) | ~15 minutes Merge Risk: ⚪ Minimal · up to This localized refactor removes temporary data structures without changing end-user behavior, and no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
✨ Aspect Workflows Tasks📅 Sat Aug 15 19:44:30 UTC 2026 ✅ 44 successful tasks
⏱ Last updated Sat Aug 15 19:50:48 UTC 2026 · 📊 GitHub API quota 2,172/15,000 (14% used, resets in 13s) |
py_binary startup benchmark
sys.path quality
Bazel analysis benchmark
|
This removes a single
.to_list()call, which will actually have minimal impact since the same depset is already flattened elsewhere.However this also removes the use of some large temp dicts (
interpreter_reference_paths) and makes it a bit clearer how thereference_mappingscreates the last-write-wins list passed to awk.Changes are visible to end-users: no
Test plan