Optimized env datasource with regex pre-filter and skip-paths
12 files · 956+ · 929-

Regex literal prefix pre-filter

1 file changed
  • env_variables.py Added _extract_literal_prefix() function and pre-filter check (67 lines changed)
  • Added _extract_literal_prefix() function that walks pattern strings to find leading literal characters before regex specials instantiate behavioral
    1 file
    • env_variables.py
  • Pre-filter check runs str.startswith() before compiled_regex.match(), rejecting non-matching keys in O(len(prefix)) time streamline behavioral
    1 file
    • env_variables.py
  • Skip-path optimization bypasses transform loop when transform_keys and transform_values are at defaults streamline internal
    1 file
    • env_variables.py
  • Skip-path optimization bypasses sensitive-key filtering when no sensitive-key patterns are configured streamline internal
    1 file
    • env_variables.py

Memray infrastructure migration

6 files changed
  • memray_env_datasource_stress.py Updated stress test for env datasource
  • baselines.json Updated allocation baselines with new results
  • conftest.py Updated memray test configuration
  • test_collection_functions_memory.py Updated collection functions memory test
  • test_env_datasource_memory.py Updated env datasource memory test
  • test_string_functions_memory.py Updated string functions memory test
  • Migrated memray profiling infrastructure to shared wrknv.memray module decouple internal
    2 files
    • memray_env_datasource_stress.py
    • conftest.py
  • Removed redundant is_debug guards from timed_token.py (superseded by provide-foundation 0.3.21.post1) streamline internal
    1 file
    • timed_token.py

Version bump and dependency pins

4 files changed
  • VERSION Bumped version to 0.3.21
  • pyproject.toml Pinned provide-foundation and jq dependency versions (9 lines)
  • .gitignore Excluded .actrc from git (4 lines)
  • uv.lock Updated dependency lock file (1,559 lines changed)
  • Bumped version to 0.3.21 baseline internal
    1 file
    • VERSION
  • Pinned jq<1.11.0 for manylinux_2_17 wheel compatibility and provide-foundation>=0.3.21 baseline internal
    1 file
    • pyproject.toml
  • Excluded memray tests from default test run qualify internal
    1 file
    • pyproject.toml