{
  "id": 3951132,
  "title": "25x Performance, Three Optimizations",
  "url": "https://urgent.news/2026/08/28/25x-performance-three-optimizations",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-28T11:33:14.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://maplant.com/2025-04-20-25x-Performance,-Three-Optimizations.html"
  },
  "original_language": "en",
  "account": "On December 31st 2024, the author decided to convert their scheme implementation to a CPS-based JIT compiler instead of an AST interpreter. This was done to make creating continuations mechanical. The author compared the performance of their final interpreted version of scheme-rs to Guile, the scheme implementation installed on the most computers, and found that Guile was over 10x faster. The author then implemented three optimizations to bring scheme-rs back to the same performance level as Guile. The first optimization was the beta reduction step, which eliminated useless functions and reduced overhead. The second optimization involved mapping expressions to primitive operators, allowing for faster execution by avoiding user functions and continuation expressions. The third optimization focused on fixing the value type for scheme-rs, replacing a giant enum with a more controlled representation.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}