perf(profiling): avoid copy of func name when utf8#3700
Conversation
|
✨ Fix all issues with BitsAI or with Cursor
|
Benchmarks [ profiler ]Benchmark execution time: 2026-03-11 14:50:06 Comparing candidate commit 185b372 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 30 metrics, 6 unstable metrics. |
This does pessimize it when it isn't utf8, but nearly all functions will be utf8.
ded3ce4 to
185b372
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3700 +/- ##
==========================================
- Coverage 62.40% 62.30% -0.11%
==========================================
Files 142 142
Lines 13586 13586
Branches 1775 1775
==========================================
- Hits 8479 8465 -14
- Misses 4301 4314 +13
- Partials 806 807 +1 see 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Description
While doing some refactoring, I noticed that we can avoid one copy of the function name:
We can optimize the error path if we care to, but not right now.
Reviewer checklist