Skip to content

ECO-CMP-PY-011 — Repeated JSON serialization cycles

  • Category: Computation (CMP)
  • Family: Python (PY)
  • Layer: Code
  • Tier: 1
  • Severity: warning
  • Tags: python, json, cpu
  • Legacy ID: ECO-PY-011

Summary

Serializing/deserializing repeatedly wastes CPU and increases latency.

Rationale

Avoid churn converting structures when you can pass objects directly.

Impact

{
  "confidence": 0.65,
  "notes": "Often appears in middleware layers.",
  "type": "cpu"
}

Detection

{
  "languages": [
    "python"
  ],
  "method": "hybrid"
}

Remediation

{
  "guidance": "Avoid unnecessary encode/decode; serialize once at boundaries.",
  "tradeoffs": "May require interface changes."
}

Ontology

{
  "system_layers": [
    "code"
  ]
}