{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-memory-efficiency",
  "id": "memory-efficiency",
  "kind": "quality-attribute",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-performance-core",
    "json": "https://banes-lab.com/json/records/layer/performance-core",
    "label": "Performance Core",
    "markdown": "https://banes-lab.com/records/layer/performance-core.md",
    "ref": "layer:performance-core"
  },
  "name": "Memory Efficiency",
  "ref": "architecture:memory-efficiency",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-space-complexity-awareness",
          "json": "https://banes-lab.com/json/records/lexicon/space-complexity-awareness",
          "label": "Space Complexity Awareness",
          "markdown": "https://banes-lab.com/records/lexicon/space-complexity-awareness.md",
          "ref": "lexicon:space-complexity-awareness"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-scalability",
          "json": "https://banes-lab.com/json/records/architecture/scalability",
          "label": "Scalability",
          "markdown": "https://banes-lab.com/records/architecture/scalability.md",
          "ref": "architecture:scalability"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-large-input-handling",
          "json": "https://banes-lab.com/json/records/lexicon/large-input-handling",
          "label": "Large Input Handling",
          "markdown": "https://banes-lab.com/records/lexicon/large-input-handling.md",
          "ref": "lexicon:large-input-handling"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-full-materialization",
          "json": "https://banes-lab.com/json/records/lexicon/full-materialization",
          "label": "Full Materialization",
          "markdown": "https://banes-lab.com/records/lexicon/full-materialization.md",
          "ref": "lexicon:full-materialization"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-cpu-cost",
          "json": "https://banes-lab.com/json/records/lexicon/cpu-cost",
          "label": "CPU Cost",
          "markdown": "https://banes-lab.com/records/lexicon/cpu-cost.md",
          "ref": "lexicon:cpu-cost"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-cpu-cost-memory-efficiency",
          "json": "https://banes-lab.com/json/records/tension/cpu-cost-memory-efficiency",
          "label": "Memory Efficiency / CPU Cost",
          "markdown": "https://banes-lab.com/records/tension/cpu-cost-memory-efficiency.md",
          "ref": "tension:cpu-cost-memory-efficiency"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-unbounded-memory-growth",
          "json": "https://banes-lab.com/json/records/lexicon/unbounded-memory-growth",
          "label": "Unbounded Memory Growth",
          "markdown": "https://banes-lab.com/records/lexicon/unbounded-memory-growth.md",
          "ref": "lexicon:unbounded-memory-growth"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-event-stream",
          "json": "https://banes-lab.com/json/records/architecture/event-stream",
          "label": "Event Stream",
          "markdown": "https://banes-lab.com/records/architecture/event-stream.md",
          "ref": "architecture:event-stream"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-chunked-processing",
          "json": "https://banes-lab.com/json/records/lexicon/chunked-processing",
          "label": "Chunked Processing",
          "markdown": "https://banes-lab.com/records/lexicon/chunked-processing.md",
          "ref": "lexicon:chunked-processing"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-iterator-pattern",
          "json": "https://banes-lab.com/json/records/architecture/iterator-pattern",
          "label": "Iterator Pattern",
          "markdown": "https://banes-lab.com/records/architecture/iterator-pattern.md",
          "ref": "architecture:iterator-pattern"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-contextual",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-contextual",
          "label": "contextual",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-contextual.md",
          "ref": "vocabulary:severity-contextual"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/records/architecture-category/scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/records/architecture-category/scalability-performance-optimization.md",
          "ref": "architecture-category:scalability-performance-optimization"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-flyweight-pattern",
          "json": "https://banes-lab.com/json/records/architecture/flyweight-pattern",
          "label": "Flyweight Pattern",
          "markdown": "https://banes-lab.com/records/architecture/flyweight-pattern.md",
          "ref": "architecture:flyweight-pattern"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-single-pass-processing",
          "json": "https://banes-lab.com/json/records/architecture/single-pass-processing",
          "label": "Single-Pass Processing",
          "markdown": "https://banes-lab.com/records/architecture/single-pass-processing.md",
          "ref": "architecture:single-pass-processing"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-lazy-evaluation",
          "json": "https://banes-lab.com/json/records/architecture/lazy-evaluation",
          "label": "Lazy Evaluation",
          "markdown": "https://banes-lab.com/records/architecture/lazy-evaluation.md",
          "ref": "architecture:lazy-evaluation"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-sequential-access",
          "json": "https://banes-lab.com/json/records/architecture/sequential-access",
          "label": "Sequential Access",
          "markdown": "https://banes-lab.com/records/architecture/sequential-access.md",
          "ref": "architecture:sequential-access"
        }
      ],
      "relation": "reinforced-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-structural-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-structural-patterns",
          "label": "Structural Patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-structural-patterns.md",
          "ref": "chapter:/ontology#architecture-category-structural-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology#architecture-category-scalability-performance-optimization"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-streaming-pipeline-dataflow-processing",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-streaming-pipeline-dataflow-processing",
          "label": "Streaming / Pipeline / Dataflow Processing",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-streaming-pipeline-dataflow-processing.md",
          "ref": "chapter:/ontology#architecture-category-streaming-pipeline-dataflow-processing"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-core-vocabulary",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-core-vocabulary",
          "label": "Core Vocabulary",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-core-vocabulary.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-core-vocabulary"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-scalability-performance-optimization"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "The degree to which a process handles its input with bounded memory, by streaming or chunking instead of loading it whole.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-cdn-edge-caching",
      "json": "https://banes-lab.com/json/records/architecture/cdn-edge-caching",
      "label": "CDN / Edge Caching",
      "markdown": "https://banes-lab.com/records/architecture/cdn-edge-caching.md",
      "ref": "architecture:cdn-edge-caching"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-rate-limiting",
      "json": "https://banes-lab.com/json/records/architecture/rate-limiting",
      "label": "Rate Limiting",
      "markdown": "https://banes-lab.com/records/architecture/rate-limiting.md",
      "ref": "architecture:rate-limiting"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "function* fooViews(foos: readonly Foo[]) {\n  for (const foo of foos) yield { id: foo.id, name: foo.name };\n}",
    "before": "const copies = foos.map(foo => structuredClone(foo));",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "algorithm",
    "process",
    "stream"
  ],
  "severity": "contextual"
}
