Avatar for the langchain-ai user
langchain-ai
langchain
BlogDocsChangelog

perf(core): eliminate redundant schema computation in tool infrastructure

#37101
Comparing
perf/tool-schema-refactor
(
dc7a009
) with
master
(
cc5a537
)
CodSpeed Performance Gauge
0%
Untouched
13
Skipped
2

Benchmarks

15 total
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
+3%
56.2 ms*54.7 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
1.2 s*1.2 s
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
672 ms*673.2 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
812.2 ms*814.7 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
1.4 s*1.4 s
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
485 ms*487.2 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
1.3 s*1.3 s
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
445.7 ms*447.8 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
1.6 s*1.6 s
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
1.3 s*1.3 s
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
1.4 s*1.4 s
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
1.5 s*1.5 s
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
1.4 s*1.4 s
test_create_agent_instantiation_with_middleware
libs/langchain_v1/tests/benchmarks/test_create_agent.py
Skipped
15.1 ms*
test_create_agent_instantiation
libs/langchain_v1/tests/benchmarks/test_create_agent.py
Skipped
4.1 ms*

Commits

Click on a commit to change the comparison range
Base
master
cc5a537
-0.31%
chore: ignore `.worktrees/` directory
7da4279
1 month ago
by sydney-runkle
+0.02%
chore(core): fix lint and format errors from schema refactor
0a16615
1 month ago
by sydney-runkle
-0.12%
fix(core): resolve annotations via `get_type_hints` and guard `issubclass` in `create_schema_from_function`
18a5a76
1 month ago
by sydney-runkle
+0.79%
fix(core): use non-string `cast` to fix mypy `no-any-return` in `create_schema_from_function`
c8df178
1 month ago
by sydney-runkle
-0.27%
fix(core): add quotes to `cast` to satisfy ruff TC006
0fc85dc
1 month ago
by sydney-runkle
-0.19%
chore(core): move test imports to top-level to satisfy ruff PLC0415
c832f7c
1 month ago
by sydney-runkle
-0.16%
feat(core): introduce `ToolSchema` as root schema cache; replace TypedDict conversion with `TypeAdapter` (#37103)
dc7a009
1 month ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs