forte icon indicating copy to clipboard operation
forte copied to clipboard

Create an efficient `all_subtypes` function

Open hunterhector opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Getting all subtypes of a certain type in the data store is used in multiple places (1, 2), but could be implemented inefficiently and can be wrong. We should create one single function for this.

Describe the solution you'd like The solution should consider:

  1. Caching results so get subtype won't be doing the same thing repeatedly
  2. Make sure the subtype orders and everything is the same across different calls (sorting the output)

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context

  • This is part of the data efficiency project
  • This PR should be made to the master branch.
  • After the data tuple class is finished, we may switch to a new branch for integration.

hunterhector avatar May 25 '22 01:05 hunterhector

@J007X could be a source for efficiency

hunterhector avatar Dec 22 '22 18:12 hunterhector