Skip to content

Commit 2f6b4c0

Browse files
committed
experiment with reducing retained arena size
1 parent 65c38dc commit 2f6b4c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/session.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub const Session = struct {
8989
try parser.init();
9090

9191
const page_arena = &self.browser.page_arena;
92-
_ = page_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
92+
_ = page_arena.reset(.{ .retain_with_limit = 128 * 1024 });
9393

9494
self.page = @as(Page, undefined);
9595
const page = &self.page.?;
@@ -128,7 +128,7 @@ pub const Session = struct {
128128
// it isn't null!
129129
std.debug.assert(self.page != null);
130130

131-
defer _ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
131+
defer _ = self.browser.transfer_arena.reset(.{ .retain_with_limit = 64 * 1024 });
132132

133133
// it's safe to use the transfer arena here, because the page will
134134
// eventually clone the URL using its own page_arena (after it gets

0 commit comments

Comments
 (0)