core/homeassistant/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
..
service_info Update Union typing (4) [Py310] (#86427) 2023-01-23 09:04:40 +01:00
__init__.py Enable Ruff SIM118 (#87772) 2023-02-15 12:39:12 +01:00
aiohttp_client.py Fix httpx client creating a new ssl context with each client (memory leak) (#90191) 2023-03-24 08:40:47 +01:00
aiohttp_compat.py Restore original aiohttp cancelation behavior (#88046) 2023-02-13 22:00:36 -06:00
area_registry.py String formatting and max line length - Part 7 (#84532) 2022-12-27 11:18:56 +01:00
check_config.py Enable Ruff SIM118 (#87772) 2023-02-15 12:39:12 +01:00
collection.py Small speed up to _collection_changed (#90621) 2023-03-31 21:15:36 -04:00
condition.py Allow conditions to be implemented in platforms (#88509) 2023-02-23 22:30:51 -05:00
config_entry_flow.py Update Union typing (4) [Py310] (#86427) 2023-01-23 09:04:40 +01:00
config_entry_oauth2_flow.py Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
config_validation.py Pass hass instance when validating templates (#89242) 2023-03-08 11:28:53 -05:00
data_entry_flow.py Store redirect URI in context instead of asking each time (#77380) 2022-08-29 19:28:42 -04:00
debounce.py Avoid unnecessary Task in debouncer (#89370) 2023-03-09 11:41:59 +01:00
deprecation.py Import `ParamSpec` from typing [Py310] (#86413) 2023-01-23 07:28:43 +01:00
device_registry.py Fix lingering timer in device registry (#89422) 2023-03-10 09:48:58 -05:00
discovery.py Avoid more task creation in the discovery helper (#90552) 2023-03-31 09:10:55 +02:00
discovery_flow.py Fix benign typo in discovery flow helper (#90396) 2023-03-28 13:01:41 +02:00
dispatcher.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
entity.py Drop __eq__ dunder method from Entity (#90585) 2023-03-31 17:03:02 +02:00
entity_component.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
entity_platform.py Allow passing an optional name to async_track_time_interval (#90244) 2023-03-25 10:11:14 -04:00
entity_registry.py Write protect entity options (#90185) 2023-03-28 22:56:51 +02:00
entity_values.py Move `disallow-any-generics` to mypy.ini (#63917) 2022-01-11 13:33:25 -08:00
entityfilter.py Speed up entity filter when there are many glob matchers (#90615) 2023-03-31 21:18:29 -04:00
event.py Allow passing an optional name to async_track_time_interval (#90244) 2023-03-25 10:11:14 -04:00
frame.py String formatting and max line length - Part 7 (#84532) 2022-12-27 11:18:56 +01:00
httpx_client.py Fix httpx client creating a new ssl context with each client (memory leak) (#90191) 2023-03-24 08:40:47 +01:00
icon.py
instance_id.py Make Store a generic class (#74617) 2022-07-09 22:32:57 +02:00
integration_platform.py Migrate integration_platform helper to use async_get_integrations (#89303) 2023-03-08 16:01:47 -05:00
intent.py Use blocking in intent service calls and verify results (#88035) 2023-02-16 14:01:41 -05:00
issue_registry.py Bump awesomeversion from 22.6.0 to 22.8.0 (#77436) 2022-08-28 14:52:23 -04:00
json.py Reduce overhead to save json data to postgresql (#88717) 2023-02-24 21:37:36 -05:00
location.py Code styling tweaks to core helpers (#85441) 2023-01-08 13:44:09 -10:00
network.py Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
ratelimit.py
recorder.py Update pylint to 2.15.4 (#80612) 2022-10-20 08:59:06 +02:00
reload.py Make EntityComponent generic (#78473) 2022-09-14 14:16:23 -04:00
restore_state.py Allow passing an optional name to async_track_time_interval (#90244) 2023-03-25 10:11:14 -04:00
schema_config_entry_flow.py Update mypy to 1.1.1 (#89268) 2023-03-08 22:57:54 +01:00
script.py Avoid lingering timer on script shutdown (#89753) 2023-03-16 08:00:21 +01:00
script_variables.py Move `disallow-any-generics` to mypy.ini (#63917) 2022-01-11 13:33:25 -08:00
selector.py Add filters to climate and light service descriptions (#86162) 2023-03-16 15:59:51 +01:00
sensor.py Code styling tweaks to core helpers (#85441) 2023-01-08 13:44:09 -10:00
service.py Add filters to climate and light service descriptions (#86162) 2023-03-16 15:59:51 +01:00
signal.py Make hass.async_stop an untracked task (#88738) 2023-02-24 23:11:48 -05:00
significant_change.py Update Optional typing (1) [Py310] (#86417) 2023-01-23 09:56:10 +01:00
singleton.py Improve singleton helper typing (#75461) 2022-07-21 00:19:02 +02:00
start.py Add at_started helper (#79577) 2022-10-05 12:24:51 +02:00
state.py Code styling tweaks to core helpers (#85441) 2023-01-08 13:44:09 -10:00
storage.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
sun.py Fix infinite loop in sun.sun (#89723) 2023-03-14 16:27:29 -10:00
system_info.py Call out 3rd party containers more clearly (#65684) 2022-02-04 09:57:14 -08:00
temperature.py Use unit_conversion in components (#79204) 2022-09-28 16:05:31 +02:00
template.py Fix memory churn in state templates (#90685) 2023-04-02 20:51:25 -04:00
template_entity.py Fix docstring in helpers.template_entity (#86227) 2023-01-19 21:24:44 -05:00
trace.py Use partition instead of split where possible in core (#81806) 2022-11-15 21:45:48 +01:00
translation.py Restructure translations for entity components (#89702) 2023-03-16 12:16:08 +01:00
trigger.py Pass a helpful name when creating common asyncio tasks in core (#89171) 2023-03-05 12:46:02 +01:00
typing.py Update Optional typing (2) [Py310] (#86419) 2023-01-23 09:10:05 +01:00
update_coordinator.py Fix missing debouncer cancel in update coordinator (#89383) 2023-03-09 15:16:52 -05:00