issues
search
dataesr
/
works-magnet
Retrieve the scholarly works of your institution
https://works-magnet.dataesr.ovh/
MIT License
8
stars
0
forks
source link
Optimize dedup function in API
#35
Closed
annelhote
closed
9 months ago
annelhote
commented
9 months ago
Use reduce func
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
?
It might be due to the merge func ?
annelhote
commented
9 months ago
Search "universite de lorraine", between 2018 and 2022 :
Before: 2:54.299s
After: 216.207ms => prefer reduce instead of forEach