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
Flatdata archives often utilize sorted resources, and a binary search to find elements withing those. It is easy to mess up the sorting when creating archive, though, leading to (sometimes) subtle bugs.
In order to avoid such bugs, it would be a nice feature if one could specify the ordering criteria for a collection directly in the flatdata specification.
This may not be possible for all collections (i.e., when the ordering criteria are not simple). But it could be helpful for most cases.
When the ordering criteria are specified, flatdata could auto-generate:
method(s) to find an element (or range of elements) in the collection
method(s) to validate sort order (e.g., when serializing a collection, flatdata generated code could throw an exception of the items being serialized are not in correct order).
The text was updated successfully, but these errors were encountered:
Flatdata archives often utilize sorted resources, and a binary search to find elements withing those. It is easy to mess up the sorting when creating archive, though, leading to (sometimes) subtle bugs.
In order to avoid such bugs, it would be a nice feature if one could specify the ordering criteria for a collection directly in the flatdata specification.
This may not be possible for all collections (i.e., when the ordering criteria are not simple). But it could be helpful for most cases.
When the ordering criteria are specified, flatdata could auto-generate:
The text was updated successfully, but these errors were encountered: