<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike" -->

---
title: gomjml v0.13.0 Uses Significantly Less Memory Than Before
description: gomjml, a Go implementation of the MJML responsive email framework, has released v0.13.0 with a memory optimization that reduces memory usage by up to 35-40%....
canonical: https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: gomjml v0.13.0 Uses Significantly Less Memory Than Before | daily.dev
og:description: gomjml, a Go implementation of the MJML responsive email framework, has released v0.13.0 with a memory optimization that reduces memory usage by up to 35-40%....
og:url: https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike
og:image: https://api.daily.dev/og/posts/Bqsm4YIKE.png
og:image:alt: gomjml v0.13.0 Uses Significantly Less Memory Than Before
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# gomjml v0.13.0 Uses Significantly Less Memory Than Before

**[Preslav Rachev](https://daily.dev/sources/preslav-rachev)** · 2 min read · 4 upvotes · 0 comments

## Summary

gomjml, a Go implementation of the MJML responsive email framework, has released v0.13.0 with a memory optimization that reduces memory usage by up to 35-40%. Previous versions rendered the email body twice - once to collect font and style metadata for the document head, and again to produce the final HTML - keeping an extra copy in memory. The new version still walks the component tree twice but only collects minimal metadata on the first pass, then renders the body once directly to output. Users of gomjml who care about performance are encouraged to upgrade.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://preslav.me/2026/09/09/gomjml-v0.13.0-improved-performance>

## Questions this post answers

### What changed in gomjml v0.13.0 that reduces memory usage?

Gomjml v0.13.0 reduces memory usage by up to 35-40% by eliminating a redundant full render of the email body. Previous versions walked the component tree twice, rendering the entire body both times, with the first pass's output kept only in memory to determine head metadata like fonts and styles. The new version still walks the tree twice, but the first pass only collects minimal metadata, and the body is rendered once directly to output.

_daily.dev surfaces library release notes like this for teams tracking memory and performance regressions._

### Why did older versions of gomjml use so much memory when rendering emails?

Older gomjml versions rendered the full body of every email twice: once to determine which fonts and styles belonged in the document head, and again to produce the final HTML output. The first pass's rendered content was kept only in memory with no other use, so at scale, across many rendered emails, those cached copies accumulated and drove up memory consumption significantly.

_Engineers debugging memory growth in email-rendering services can follow fixes like this one via daily.dev._

## Similar posts on daily.dev

- [Write PDFs in React. Render them from Go. No Node, no browser, no sidecar.](https://daily.dev/posts/write-pdfs-in-react-render-them-from-go-no-node-no-browser-no-sidecar--yoq6vdfyj) · Medium · 91 upvotes · 2 comments
- [A new JS framework for old time's sake](https://daily.dev/posts/a-new-js-framework-for-old-time-s-sake-hyqs2phph) · Bytes by ui.dev · 1 upvotes · 1 comments
- [Goblin Dot Business](https://daily.dev/posts/goblin-dot-business-fapuq8d7j) · RUBYLAND · 0 upvotes · 0 comments
- [Go 1.27 interactive tour](https://daily.dev/posts/go-1-27-interactive-tour-dvxr0krfs) · Lobsters · 11 upvotes · 0 comments

---

Tags: [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"gomjml v0.13.0 Uses Significantly Less Memory Than Before","url":"https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike"},"datePublished":"2026-09-09T12:18:53.404Z","dateModified":"2026-09-14T08:40:23.721Z","description":"gomjml, a Go implementation of the MJML responsive email framework, has released v0.13.0 with a memory optimization that reduces memory usage by up to 35-40%....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bb37e2ecb3d8e0f2fab293afbea1ba90?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bb37e2ecb3d8e0f2fab293afbea1ba90?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Preslav Rachev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Preslav Rachev","logo":"https://media.daily.dev/image/upload/s--2e2jzT7b--/f_auto,q_auto/v1780213591/logos/preslav-rachev?_a=BAMAMiWQ0","url":"https://daily.dev/sources/preslav-rachev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"golang","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Preslav Rachev","item":"https://daily.dev/sources/preslav-rachev"},{"@type":"ListItem","position":3,"name":"gomjml v0.13.0 Uses Significantly Less Memory Than Before"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/gomjml-v0-13-0-uses-significantly-less-memory-than-before-bqsm4yike#faq","mainEntity":[{"@type":"Question","name":"What changed in gomjml v0.13.0 that reduces memory usage?","acceptedAnswer":{"@type":"Answer","text":"Gomjml v0.13.0 reduces memory usage by up to 35-40% by eliminating a redundant full render of the email body. Previous versions walked the component tree twice, rendering the entire body both times, with the first pass's output kept only in memory to determine head metadata like fonts and styles. The new version still walks the tree twice, but the first pass only collects minimal metadata, and the body is rendered once directly to output. daily.dev surfaces library release notes like this for teams tracking memory and performance regressions."}},{"@type":"Question","name":"Why did older versions of gomjml use so much memory when rendering emails?","acceptedAnswer":{"@type":"Answer","text":"Older gomjml versions rendered the full body of every email twice: once to determine which fonts and styles belonged in the document head, and again to produce the final HTML output. The first pass's rendered content was kept only in memory with no other use, so at scale, across many rendered emails, those cached copies accumulated and drove up memory consumption significantly. Engineers debugging memory growth in email-rendering services can follow fixes like this one via daily.dev."}}]}
```

