jaredramirez/rescript-json

How to get rid of all the calls to Curry?

andremw opened this issue · 1 comments

Rescript-json's performance is very poor compared to decco or rescript-struct.

One difference among them is that there's no curried calls in rescript-struct. What changes would be necessary to get rid of them?

DZakh commented

I've taken a look at the code of the library. Actually what affects performance the most here is the result-based API, which causes a lot of object allocations. Curry._1 usually doesn't affect performance this much.

I'll add this library to the https://github.com/DZakh/rescript-runtime-type-benchmarks when I have time.