jackfirth / pyramda

Python package supporting heavy functional programming through currying. Translation of the Ramda library from javascript to python.
MIT License
127 stars 10 forks source link

possibility of writing c bindings for functions #29

Closed Rafi993 closed 5 years ago

Rafi993 commented 6 years ago

When doing complex aggregation using pyramda it gets really slow (as expected). May be we could write c bindings for functions so that they could do better.

jackfirth commented 6 years ago

The poor performance of Pyramda is likely due to the overhead of currying and varargs. I don't think C bindings would help with that unfortunately.

Broadly speaking, I am not interested in optimizing Pyramda - especially not without benchmarks. I don't think the work involved would be worth it. If you have a specific use case where performance is an issue, we can talk about that and I'm sure we'll figure something out.