From 3b0e9424a66058da82d11d432da886ec7b6ce7eb Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 27 Apr 2026 17:45:13 +0200 Subject: perf(eval): reduce memory syscall --- src/content.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/content.zig') diff --git a/src/content.zig b/src/content.zig index b1ac0c7..96a361a 100644 --- a/src/content.zig +++ b/src/content.zig @@ -13,7 +13,6 @@ pub const Error = error{ ModifierNotClosed, IllegalPlacement } || Allocator.Erro pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { var content = try Element.Empty.init(alloc); - errdefer content.deinit(alloc); const v = l.next().?; switch (v.kind) { .literal => { @@ -30,7 +29,6 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { fn parseModifier(alloc: Allocator, l: *Lexer, knd: Token.Kind, comptime tag: []const u8) Error!Element { var el = try Element.Simple(tag).init(alloc); - errdefer el.deinit(alloc); while (l.peek()) |next| { if (next.kind == knd) { // consuming the finisher -- cgit v1.2.3