mirror of
https://github.com/esphome/esphome.git
synced 2026-08-25 07:36:19 +00:00
Drop the components-graph memo; it defeats the tested disk-cache semantics
The in-process cache served a stale graph across mtime and version changes, which the script test suite pins; the saved re-parse was tens of milliseconds.
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import annotations
|
||||
import ast
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass, field
|
||||
import functools
|
||||
from functools import cache
|
||||
import hashlib
|
||||
import json
|
||||
@@ -1249,7 +1248,6 @@ def get_components_graph_cache_key() -> str:
|
||||
return hasher.hexdigest()
|
||||
|
||||
|
||||
@functools.cache
|
||||
def create_components_graph() -> dict[str, list[str]]:
|
||||
"""Create a graph of component dependencies (cached).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user