hass-core/tests/helpers
J. Nick Koston 17719663f0
Fix memory churn in state templates (#90685)
* Fix memory churn in state templates

The LRU for state templates was limited to 512 states. As soon
as it was exaused, system performance would tank as each template
that iterated all states would have to create and GC any state
> 512

* does it scale?

* avoid copy on all

* comment

* preen

* cover

* cover

* comments

* comments

* comments

* preen

* preen
2023-04-02 20:51:25 -04:00
..
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_aiohttp_client.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_aiohttp_compat.py Restore original aiohttp cancelation behavior (#88046) 2023-02-13 22:00:36 -06:00
test_area_registry.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_check_config.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_collection.py Fix lingering timer in collection helper tests (#89793) 2023-03-16 08:38:22 -04:00
test_condition.py Fix lingering timer in condition tests (#89807) 2023-03-16 18:19:29 +01:00
test_config_entry_flow.py Fix lingering timer in config entry flow tests (#89853) 2023-03-19 08:56:24 +01:00
test_config_entry_oauth2_flow.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_config_validation.py Pass hass instance when validating templates (#89242) 2023-03-08 11:28:53 -05:00
test_debounce.py Fix lingering task in debounce tests (#89019) 2023-03-02 13:01:50 -05:00
test_deprecation.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_device_registry.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_discovery.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_discovery_flow.py Prevent new discovery flows from being created when stopping (#88743) 2023-02-25 12:02:07 +01:00
test_dispatcher.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_entity.py Add type hints to helper tests (#89784) 2023-03-16 11:10:56 +01:00
test_entity_component.py Fix EntityComponent lingering timer in helper tests (#89801) 2023-03-17 10:26:05 +01:00
test_entity_platform.py Fix EntityComponent lingering timer in helper tests (#89801) 2023-03-17 10:26:05 +01:00
test_entity_registry.py Write protect entity options (#90185) 2023-03-28 22:56:51 +02:00
test_entity_values.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_entityfilter.py Speed up entity filter when there are many glob matchers (#90615) 2023-03-31 21:18:29 -04:00
test_event.py Avoid sorting domain/all states in templates (#90608) 2023-03-31 11:27:55 -10:00
test_frame.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_httpx_client.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_icon.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_init.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_instance_id.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_integration_platform.py Migrate integration_platform helper to use async_get_integrations (#89303) 2023-03-08 16:01:47 -05:00
test_intent.py Adjust entity registry access in helper tests (#88965) 2023-03-01 16:24:31 +01:00
test_issue_registry.py Adjust issue_registry imports (#88878) 2023-02-28 21:55:44 -05:00
test_json.py Refactor json tests to align with new code (#88247) 2023-02-16 21:34:19 +01:00
test_location.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_network.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_ratelimit.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_recorder.py Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
test_reload.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_restore_state.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_schema_config_entry_flow.py Try to load integration before starting option flow (#90111) 2023-03-22 20:10:10 +01:00
test_script.py Avoid lingering timer on script shutdown (#89753) 2023-03-16 08:00:21 +01:00
test_script_variables.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_selector.py Add filters to climate and light service descriptions (#86162) 2023-03-16 15:59:51 +01:00
test_service.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_significant_change.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_singleton.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_start.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_state.py Add more type hints to conftest.py (#87842) 2023-02-11 13:48:53 +01:00
test_storage.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_storage_remove.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_sun.py Fix infinite loop in sun.sun (#89723) 2023-03-14 16:27:29 -10:00
test_system_info.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_temperature.py Add typing to tests with single hass argument (#87631) 2023-02-07 15:01:16 +01:00
test_template.py Fix memory churn in state templates (#90685) 2023-04-02 20:51:25 -04:00
test_translation.py Add pre-defined entity name translations (#89792) 2023-03-16 21:10:20 +01:00
test_trigger.py Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
test_update_coordinator.py Avoid lingering timers in update coordinator tests (#89749) 2023-03-15 18:50:32 +01:00