Closed llorllale closed 3 years ago
I think this is a fine suggestion, however, is it a requirement? Performance improvements can be handled at the impl layer. What's stopping you from implementing this as a map and translating to objs at the boundaries of the API?
@glcohen
I think this is a fine suggestion, however, is it a requirement? Performance improvements can be handled at the impl layer. What's stopping you from implementing this as a map and translating to objs at the boundaries of the API?
Yes, this is not a blocking issue.
I think this tweak would help in two ways:
input_descriptors
structure by relying on a known data structure with the required semantics (id
must be unique)Consider this a proposal for v0.2.0
or greater.
I'll start the new label 😄
If this is desired, it should be done now, because it's a significant breaking change that I don't think we should do after 1.0, which we're trying to get stamped by mid-January.
We discussed this on the call today and decided the change is not worth it for a few reasons:
tl;dr good idea but not worth it 😄
Proposal: make
input_descriptors
a map for constant time lookups.Rationale: each
input_descriptor
is required to have a uniqueid
. Also, submissions are only required to reference the requirement'sid
. Therefore the schema can be changed to this without breaking the semantics:Motivation: avoid multiple O(N) lookups while evaluating submissions.