You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FillPath performance starts really strong, at 27µs. However, as the number of increases, FillPath takes around 500ms at 1k entries. Sporadically throughout there are 1-2s FillPath calls also.
FTR: this comment already exists in internal/core/adt/closed.go and is related to exactly this issue:
// TODO(perf): more aggressively determine whether a struct is open or
// closed: open structs do not have to be checked, yet they can particularly
// be the ones with performance issues, for instanced as a result of
// embedded for comprehensions.
It basically is quadratic slowdown, thought the constant is higher than I expected.
Originally opened by @rawkode in cuelang/cue#899
What version of CUE are you using (
cue version
)?0.3.2
Problem
FillPath
performance starts really strong, at 27µs. However, as the number of increases,FillPath
takes around 500ms at 1k entries. Sporadically throughout there are 1-2sFillPath
calls also.Video
https://i.rawko.de/jkuLe9l9
Reproduction
The text was updated successfully, but these errors were encountered: