{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiam3gxld7mzictub45zi6qcuby73dviuwl3q32g4eopc3xfisc4sa",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mkcq3ijbxlw2"
  },
  "path": "/t/help-with-optimization-profiling/13982#post_2",
  "publishedAt": "2026-04-25T08:22:33.000Z",
  "site": "https://discourse.haskell.org",
  "textContent": "I’d start looking at Core. Clearly the generateImage and encodePallettedPng functions are inlined. Perhaps they do more work than necessary.\n\nI’d also check if the allocations make sense to you. Perhaps some intermediate structures are allocated which can be eliminated.",
  "title": "Help with optimization/profiling"
}