langchain-ai
langchain
BlogDocsChangelog

refactor: use reduce and avoid slicing

#33710
Comparing
arun-geek:master
(
ac37630
) with
master
(
e5e1d6c
)
CodSpeed Performance Gauge
0%
Untouched
3
Skipped
31

Benchmarks

Skipped (31)

Passed

test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
0%
764.9 µs*763.8 µs
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
0%
33.4 ms*33.4 ms
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
CodSpeed Performance Gauge
-1%
2.3 ms*2.3 ms

Commits

Click on a commit to change the comparison range
Base
master
e5e1d6c
+3.6%
Update _compat.py if "url" in annotation: in Line 15 , already ensures "url" is key in annotation , so no need to check again to set "url" key in out
b85de2b
4 days ago
by arun-geek
+0.06%
refactor(anthropic): Minor refactor for readability Reduced return and continue statement for readability and simplicity
0bb4511
4 days ago
by arun-geek
-3.46%
Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
f48e94a
2 days ago
by mdrxy
-0.34%
Merge branch 'master' into master
ced5e69
2 days ago
by mdrxy
-0.09%
refactor: use reduce Slicing [:] in python creates a new list , a small performance gain , apart from using functional syntax
ac37630
10 hours ago
by arun-geek
© 2025 CodSpeed Technology
Home Terms Privacy Docs