dataesr / works-magnet

Retrieve the scholarly works of your institution
https://works-magnet.dataesr.ovh/
MIT License
8 stars 0 forks source link

[optimize] Optimize the groupByAffiliations function #43

Closed annelhote closed 9 months ago

annelhote commented 9 months ago

Use the reduce function

annelhote commented 9 months ago

Search "universite de lorraine", between 2018 and 2022 :

annelhote commented 9 months ago

The regex might be the bottleneck, try replace it by a comparison between normalized strings.