Closed ghost closed 7 years ago
hi, defun is just a thin wrapper on core.match, and the performance bottleneck is also on it.
We are using defun in our production with instaparse to implement a DSL, it works well. But you should balance the performance and expressive in your development by yourself.
I ran the benchmark and similar to your results, the performance is not good enough. My test results:
As you can see
defn
takes645.082481 µs
whereasdefun
is taking2.920135 ms (2920.135 µs)
, which is4.5x
slower. Love the library but I am not sure I can use it for any serious development. Please improve the performance.