opa icon indicating copy to clipboard operation
opa copied to clipboard

High evaluation time when referencing huge array

Open anderseknert opened this issue 1 year ago • 4 comments

Even when "unused", simply referencing a huge array will have a big impact on evaluation time.

package evaluator

access := bar {
	data.slow_bundle.index.feeds
	bar := "baz"
}

In the above case data.slow_bundle.index.feeds is a 10 MB JSON array containing some huge objects. I'd expect a simple reference to not have that kind of impact, as there's no evaluation needed in this case.

anderseknert avatar May 24 '23 09:05 anderseknert