The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/dag-serialization-signature-cache has succeeded.
Run started by GitHub user shahar1 (triggered by shahar1).

Head commit for run:
dfe88b03cf9ed07042d61e1a23ebea732e4667fa / Shahar Epstein 
<[email protected]>
Perf: cache BaseOperator signature in OperatorSerialization

serialized_objects.py:_serialize_node called
signature(BaseOperator.__init__) once per task to build forbidden_fields.
BaseOperator.__init__ never changes during a Python process, so this
computed the same 57-entry frozenset N_tasks times every serialization.

Promote to _FORBIDDEN_TEMPLATE_FIELDS class constant, computed once at
class-load time.  Benchmark (200 tasks × 20 outlets, warm venv):

  before  ~89 ms min / ~140 ms median
  after   ~63 ms min /  ~69 ms median  (-29 % / -51 %)

cProfile confirms inspect.signature() (22 % of wall-time) is now absent
from the profile; total function-call count drops by ~660k per 5-iter
profiling session (one per task × 5 iterations).

Report URL: https://github.com/apache/airflow/actions/runs/26630436006

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to