JSON schemas and examples representing structural data, characteristic properties, modeling workflows and related data about materials standardizing the diverse landscape of information
There's a core method call of get_schema_by_id which is doing an O(N) call.
classESSE(object):
""" Exabyte Source of Schemas and Examples class. """def__init__(self):
self.schemas=SCHEMASself.examples=EXAMPLESdefget_schema_by_id(self, schemaId):
returnnext((sforsinSCHEMASifs.get("schemaId") ==schemaId), None)
While parsing in libs like Exabtye's express are probably limited by file parsing IO and N is small here (~200), get_schema_by_id is called from serialize_and_validate on every property. The call can be converted to a O(1) lookup with a minor change.