humlab-swedeb / swedeb-api

1 stars 0 forks source link

Fix expensive loop in filter_corpus #52

Closed roger-mahler closed 1 month ago

roger-mahler commented 1 month ago
            # FIXME: Very expensive loop, use one call to filter instead i.e. let lambda check all keys

https://github.com/humlab-swedeb/swedeb-api/blob/7f946967374040f4954fce091c7aa58d79b17aa7/api_swedeb/api/utils/corpus.py#L374

roger-mahler commented 1 month ago

Fixed in PR #57.