Will anyone get the JS function in the description down to below 100ms?
15
290Ṁ1051
resolved Oct 5
Resolved
NO

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.)

Get
Ṁ1,000
to start trading!

🏅 Top traders

#NameTotal profit
1Ṁ92
2Ṁ17
3Ṁ6
4Ṁ5
5Ṁ1
© Manifold Markets, Inc.TermsPrivacy