Will anyone get the JS function in the description down to below 100ms?
15
290Ṁ1051resolved Oct 5
Resolved
NO1H
6H
1D
1W
1M
ALL
return str.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase().trim().replace(/[- ,'".]/g, "");
Running this in a loop over all Manifold market titles and description takes about 1 second. I feel like there's gotta be a more efficient way to do this.
(Must be under 100ms running on my machine, single-threaded.)
This question is managed and resolved by Manifold.
Get
1,000 to start trading!
🏅 Top traders
# | Name | Total profit |
---|---|---|
1 | Ṁ92 | |
2 | Ṁ17 | |
3 | Ṁ6 | |
4 | Ṁ5 | |
5 | Ṁ1 |