mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
Reduce stack size usage by about 120 KB
This commit is contained in:
@@ -7,8 +7,12 @@ pub const Bitset = struct {
|
||||
const Cache = @import("identifier_cache.zig");
|
||||
const id_start_range: [2]i32 = Cache.id_start_meta.range;
|
||||
const id_end_range: [2]i32 = Cache.id_continue_meta.range;
|
||||
const id_start = Cache.id_start;
|
||||
const id_continue = Cache.id_continue;
|
||||
// this is a pointer because otherwise it may be copied onto the stack
|
||||
// and it's a huge bitset
|
||||
const id_start = &Cache.id_start;
|
||||
// this is a pointer because otherwise it may be copied onto the stack
|
||||
// and it's a huge bitset
|
||||
const id_continue = &Cache.id_continue;
|
||||
|
||||
pub fn init() void {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user