pyvider-components
2026-03-20
Added memray memory profiling infrastructure and debug guards
15 files · 537+ · 2-
Memray profiling infrastructure
11 files changed
__init__.pyAdded memray scripts packagememray_analysis.pyAdded memray analysis utility (155 lines)memray_collection_functions_stress.pyAdded collection functions stress test (52 lines)memray_env_datasource_stress.pyAdded env datasource stress test (74 lines)memray_string_functions_stress.pyAdded string functions stress test (64 lines)__init__.pyAdded memray test packagebaselines.jsonAdded memory allocation baselines (5 lines)conftest.pyAdded memray test configuration (8 lines)test_collection_functions_memory.pyAdded collection functions memory test (13 lines)test_env_datasource_memory.pyAdded env datasource memory test (13 lines)test_string_functions_memory.pyAdded string functions memory test (13 lines)
- Added memray analysis script and 3 stress test scripts targeting collection functions, env datasource, and string functions
instantiate
behavioral
4 files
memray_analysis.pymemray_collection_functions_stress.pymemray_env_datasource_stress.pymemray_string_functions_stress.py
- Added pytest-memray integration with 3 memory tests and allocation baselines
qualify
internal
4 files
test_collection_functions_memory.pytest_env_datasource_memory.pytest_string_functions_memory.pybaselines.json
Performance optimizations
4 files changed
timed_token.pyAdded is_debug_enabled() guards around f-string debug calls (6 lines)pyproject.tomlAdded memray dependency (2 lines).gitignoreAdded memray output files to gitignore (1 line)wrknv.tomlAdded memray task definitions (6 lines)
- Wrapped debug() log calls with is_debug_enabled() guards in timed_token.py to prevent unnecessary string formatting
streamline
internal
1 file
timed_token.py
- Added memray as development dependency and wrknv.toml task definitions
baseline
internal
2 files
pyproject.tomlwrknv.toml