Performance: 53% faster parse+render, 61% fewer allocations by tobi · Pull Request #2056 · Shopify/liquid

1 min read Original article ↗

added 30 commits

March 11, 2026 07:10
…ter chains without full Lexer pass for name
… filter args without colon
…esult: {"status":"keep","combined_µs":3464,"parse_µs":2335,"render_µs":1129,"allocations":24882}
…ants\n\nResult: {"status":"keep","combined_µs":3490,"parse_µs":2331,"render_µs":1159,"allocations":24882}

@tobi tobi changed the title Performance: 47% faster parse+render, 60% fewer allocations Performance: 52% faster parse+render, 60% fewer allocations

Mar 12, 2026
…n) overhead, -12% combined\n\nResult: {"status":"keep","combined_µs":3350,"parse_µs":2212,"render_µs":1138,"allocations":24882}

@tobi

…"status":"keep","combined_µs":3314,"parse_µs":2203,"render_µs":1111,"allocations":24882}

@tobi tobi changed the title Performance: 52% faster parse+render, 60% fewer allocations Performance: 55% faster parse+render, 60% fewer allocations

Mar 12, 2026
…elation) — saves 235 allocs\n\nResult: {"status":"keep","combined_µs":3445,"parse_µs":2284,"render_µs":1161,"allocations":24647}
…ll, cleaner code\n\nResult: {"status":"keep","combined_µs":3489,"parse_µs":2353,"render_µs":1136,"allocations":24647}
…condition evaluation\n\nResult: {"status":"keep","combined_µs":3459,"parse_µs":2318,"render_µs":1141,"allocations":24647}
… allocation per render\n\nResult: {"status":"keep","combined_µs":3496,"parse_µs":2356,"render_µs":1140,"allocations":24530}

@tobi tobi changed the title Performance: 55% faster parse+render, 60% fewer allocations Performance: 52% faster parse+render, 61% fewer allocations

Mar 12, 2026

@tobi

@tobi tobi changed the title Performance: 52% faster parse+render, 61% fewer allocations Performance: 53% faster parse+render, 61% fewer allocations

Mar 12, 2026

basicBrogrammer

@jg-rp jg-rp mentioned this pull request

Apr 6, 2026