How to overcome limit length

In V8 (used by Chrome and Node), the maximum length is 229 – 24 (~1GiB)

I created a parser, but when parsing a large file, oom occurs when the limit is exceeded.

It is a parser that parses all files at once and operates synchronously, so if that limit is exceeded, oom problems seem to occur.

In the v8 engine (used by Chrome and Node), is there any way to use many strings or memory over 1GB? It is okay to use binary rather than string.

I’d like to get some ideas.

The parser I wrote and use