How are you going to garbage collect inside your array? Sounds like you are just evading the problem and reinventing the heap.
Despite this, it's one of the fastest regex engines around: https://github.com/BurntSushi/rebar#summary-of-search-time-b...
Here's a related but more isolated analysis: https://github.com/burntsushi/rsc-regexp