-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Labels
modelAbout the data modelAbout the data model
Description
Create an abstraction for the OrtResult
to decouple the ORT tools from the way that ORT data is stored.
Currently, we access the data stored in OrtResult
directly in many places. This has the downside that the tools are tightly coupled to the OrtResult
class, while the OrtResult
class has to be optimized for serialization at the same time, because it is used to write the result files. Creating a facade (e.g. an interface of a collection of interfaces) would have several benefits:
- We could provide different means to store ORT result data, for example a local database, and it would be easier to experiment with alternative storage formats like Protobuf.
- Breaking changes in the ORT result file format would not necessarily require changes in the interface.
- Tests often require to build large parts of an
OrtResult
or even a completeOrtResult
, when they actually only use a much smaller part of it. In those cases mocks could be used to reduce the size of the tests.
sschuberth and MarcelBochtler
Metadata
Metadata
Assignees
Labels
modelAbout the data modelAbout the data model