Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recently wrote a parser in Elixir for a templating language. Binary pattern matching is pretty neat for this purpose, but performance is nevertheless sub-optimal. Elixir was chosen over more suitable languages because our team is Elixir-only. OP shows that delegating performance critical computations in Rust is viable and fairly cleanly. That's good to know.


Have you taken a look at https://rhye.org/post/erlang-binary-matching-performance/ ? I've seen lots of posts in the erlang mailing list about how unintuitive getting optimal performance from binary pattern matching can be.


It's also worth trying on OTP-22, which is reportedly much better at optimizing binary patterns:

http://blog.erlang.org/OTP-22-Highlights/


I have, but thanks for the link :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: