Speedup audb.Dependencies to list conversions #362
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Speeds up conversion to Python list by using
x.tolist()
instead oflist(x)
in the following methods/properties:audb.Dependencies.__getitem__()
audb.Dependencies.attachments
audb.Dependencies.attachment_ids
audb.Dependencies.files
audb.Dependencies.media
audb.Dependencies.removed_media
audb.Dependencies.tables
Dependency.__call__()
Dependency.__contains__()
Dependency.__get_item__()
Dependency.__len__()
Dependency.__str__()
Dependency.archives
Dependency.attachments
Dependency.attachment_ids
Dependency.files
Dependency.media
Dependency.removed_media
Dependency.table_ids
Dependency.tables
Dependency.archive(1000 files)
Dependency.bit_depth(1000 files)
Dependency.channels(1000 files)
Dependency.checksum(1000 files)
Dependency.duration(1000 files)
Dependency.format(1000 files)
Dependency.removed(1000 files)
Dependency.sampling_rate(1000 files)
Dependency.type(1000 files)
Dependency.version(1000 files)
Dependency._add_attachment()
Dependency._add_media(1000 files)
Dependency._add_meta()
Dependency._drop()
Dependency._remove()
Dependency._update_media()
Dependency._update_media_version(1000 files)