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
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.
Just a quick note - thanks for this helpful suggestion, Michael! We'll review and plan to schedule this for inclusion in the next release (later in Q1 or early Q2).
There's a core method call of
get_schema_by_id
which is doing an O(N) call.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 fromserialize_and_validate
on every property. The call can be converted to a O(1) lookup with a minor change.The text was updated successfully, but these errors were encountered: