oneOf Performance Issues #944
Replies: 2 comments 3 replies
-
Yes this is a known issue. There are some limitations to the current disjunction implementation. Must disjunctions that occur in practice can be evaluated in linear time, but the current implementation is very slow indeed, though this particular amount of slowdown is somewhat unexpected. We know what to do to fix it and it is a fairly high-priority item, but it may take some time. But before getting to this fix, this would also be addressed with the proposed |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#944. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
I've noticed that when we use cue to generate open api schemas from an api defined via protocol buffers, schema generation takes increasingly longer with the existence of each oneof. I created a contrived proto to outline this:
The above proto alone takes 4-5 minutes to generate an open api schema.
Do you have any tips for navigating this issue? Is this a known issue?
Beta Was this translation helpful? Give feedback.
All reactions