-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization of some functions (#462)
Addresses #202 - [x] Ran `poetry update` - [x] Call `_get_sssom_schema_object()` once in the function `get_dict_from_mapping()` rather than multiple times in a for loop that is inefficient. - [x] Instead of `pandas.iterrows()` use `pandas.apply()` in `_get_mapping_set_from_df()` - [x] Use dict/list comprehensions instead of for loops - [x] Use sets instead of lists where lookups are done and sequence of elements don't matter. - [x] Improve `SchemaView` object instantiation and persistence - [x] Use `@cached_property` thank you @cthoyt --------- Co-authored-by: Charles Tapley Hoyt <cthoyt@gmail.com> Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
- Loading branch information
1 parent
da2a250
commit 20a00be
Showing
5 changed files
with
207 additions
and
110 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.