perf(transformer/inject_global_variables): do not search string twice#10751
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
WalkthroughThe change updates the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (14)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
CodSpeed Instrumentation Performance ReportMerging #10751 will not alter performanceComparing Summary
|
Merge activity
|
…#10751) Small optimization. `local.cow_replace('.', "_")` searches the string and returns a `Cow::Borrowed` if it doesn't contain `.`. So use that result instead of an additional search with `local.contains('.')`.
4709038 to
699ab3e
Compare

Small optimization.
local.cow_replace('.', "_")searches the string and returns aCow::Borrowedif it doesn't contain.. So use that result instead of an additional search withlocal.contains('.').