Hello everyone! I’ve been working on a hobby project recently and was trying to find content on how to make Elixir code more performant… I’ve been working on this RSS feed parser: GitHub - thiagomajesk/gluttony that is based on Saxy
and was wondering how much faster I could make this code without recurring to external aid (without using NIFs). From the initial benchmarks that I did, the code is already very fast compared to other alternatives (mostly because of the difference in performance from the underlying parser). So, I basically want to see how much overhead I can take off of my custom processing logic to make it as fast as it can naturally be¹…
- This is the generic XML handler:
gluttony/parser.ex at master · thiagomajesk/gluttony · GitHub. - This is where the RSS 2.0 feed logic resides:
gluttony/rss2_standard.ex at master · thiagomajesk/gluttony · GitHub
Do you guys have any tips, tricks, tools, or materials that would be interesting to share?
¹This is more of a learning experience that an actual necessity. I’m fairly happy with the current performance of the program but I think it would be interesting to have a little bit more knowledge on the subject if I happen to need some time in the future.
PS.: Any considerations on how the code is shaping up to be are welcome as well (I don’t know a lot of experienced people that work with Elixir to review this so…)