Repository navigation
Keep client builder connectivity private - #22561
Conversation
Python discovery reads `BaseClientBuilder`'s public `connectivity` field even though the builder already exposes `is_offline`. Use that query at the three discovery sites, make the field private, and remove the unused `Connectivity::is_online` helper. The public `connectivity` setter remains available for client configuration. --------- Co-authored-by: zaniebot <[email protected]>
Merging this PR will improve performance by 5.83%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | from_hex/uppercase[48] |
336.9 µs | 316.1 µs | +6.57% |
| ⚡ |
discover_workspace_from_all_members_with_excludes |
148.2 ms | 140.3 ms | +5.64% |
| ⚡ |
discover_workspace_from_all_members |
148.8 ms | 141.4 ms | +5.29% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zb/opportunity-06-09-private-connectivity (4027c07) with main (1310268)2
Footnotes
-
80 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(725b74b) during the generation of this report, so 1310268 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
Python discovery reads
BaseClientBuilder's publicconnectivityfield even though the builder already exposesis_offline. Use that query at the three discovery sites, make the field private, and remove the unusedConnectivity::is_onlinehelper. The publicconnectivitysetter remains available for client configuration.