Skip to content

Conversation

@sneakers-the-rat
Copy link
Contributor

More free perf!

Since the iteration over all the metaslots happens so many times, it turns out that the time in JsonObj.__bool__ is actually appreciable. A simple swap out with is None gives us a 137% perf boost for free :)

lots more perf to be had in this method in a fuller refactor but wanted to get this one in here since it's so uncontroversial, should be quick review

before (__bool__ in pink):
Screenshot 2024-07-23 at 8 52 20 PM

after (__bool__ not present anymore):
Screenshot 2024-07-23 at 9 06 56 PM

@cmungall cmungall merged commit 81b3c62 into linkml:main Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants