bilby.js icon indicating copy to clipboard operation
bilby.js copied to clipboard

Extremely slow curry

Open elclanrs opened this issue 10 years ago • 4 comments

Bilby's curry compared to LiveScript's curry on same code. Image speaks more than words: Imgur

elclanrs avatar Mar 08 '14 09:03 elclanrs

Any chance of knowing what you're testing (examples, test cases), so we're not comparing apples and oranges.

SimonRichardson avatar Mar 08 '14 13:03 SimonRichardson

I'm testing with some simple lazy streams code. I made a jsPerf. Bilby is like 10 times slower.

elclanrs avatar Mar 08 '14 14:03 elclanrs

While performance is important, they are for totally different things.

Kyle Marek-Spartz

On March 8, 2014 at 3:42:47 AM, elclanrs ([email protected]) wrote:

Bilby's curry compared to LiveScript's curry. Image speaks more than words: Imgur


Reply to this email directly or view it on GitHub: https://github.com/puffnfresh/bilby.js/issues/12

kmarekspartz avatar Mar 08 '14 14:03 kmarekspartz

I see the difference, but I think that bind is trying to do too much, so curry becomes slow. Bilby uses curry in many places, this optimization would improve performance a lot. Why not create a partial function, and a bind function?

elclanrs avatar Mar 08 '14 14:03 elclanrs