Performance Analysis: Token Application Logic for Large-Scale Files#3636
Performance Analysis: Token Application Logic for Large-Scale Files#3636
Conversation
|
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
|
@copilot we should have some sentry measurements/transactions in place already, see if you need to extend those to create a baseline we can compare against |
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Added comprehensive Sentry instrumentation plan in commit bcaa8a9. What I found:
What I added:
Key metrics to track:
Baseline plan: Week 0 to capture current state before Phase 1 implementation. |
|
@copilot i noticed yure "estimating memory".. never do this. never estimate. if we cant use it from figma side, dont fake it |
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Fixed in commit c7cbf6a. Removed all memory estimation from plugin sandbox instrumentation. Removed:
Now tracking only measurable metrics:
Memory improvements validated indirectly via operational metrics, crash rates, and success at scale (100k+ nodes). |
✅ Performance Analysis Complete - Memory Estimation Removed
🔧 Latest Update (Addressing Code Review Feedback)
Removed memory estimation from plugin sandbox instrumentation per @six7's feedback.
Changes Made:
getMemoryUsage()method that was attempting to estimate memorymemoryUsedfrom PerformanceMetric interfaceHow Memory Improvements Will Be Validated:
promiseSetSize,workerPoolSize,arraySize(actual counts)memoryErrorsand crash ratesMeasurable Metrics (No Estimation):
All memory analysis in the performance documents is based on theoretical calculations and profiling expectations, not runtime estimation. The instrumentation plan now only tracks metrics that can be accurately measured.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.