Great explanation. Really enjoyed that one. The Benchmark was my favourite part.
@toptechskills3 жыл бұрын
Thanks for the comment LGG, appreciate the positive feedback 🙏
@RogerioPontual5 жыл бұрын
Hello Percy, I liked a lot your video. Inspiring! Could you share please your setup on Visual Code to searching on Elixir docs?
@toptechskills5 жыл бұрын
Hi Rogerio, thank you for your kind comment. To search Elixir docs I'm using a combination of: - Alfred (www.alfredapp.com/) - Dash (kapeli.com/dash) - Dash workflow for Alfred (github.com/Kapeli/Dash-Alfred-Workflow) You will need the paid versions of Dash and Alfred, but it's well worth it, since pulling up docs is extremely quick and easy as you see in the video. Unfortunately this setup will only work on Mac OS, so if you're running Linux or Windows, you will need to find another way. Hope this helps, let me know if you have any trouble getting set up.
@RogerioPontual5 жыл бұрын
@@toptechskills Thank you Percy for all the details! Currently I'm using Linux but it was good to know these projects. All the best
@chrissphinx5 жыл бұрын
I wonder if the merging of the maps is a bottleneck for the program. Do you think benchmarks would be more favorable if ETS was being used instead of merging all resulting maps in a single process?
@toptechskills5 жыл бұрын
Hi Chris, thanks a lot for your comment. I tried out your suggestion of using an ETS table and it has improved the performance slightly (~5%). I'm not sure that the merging of the maps is as big a bottleneck as you suspect, since even with ETS you still need to convert the list representation of the table into a map. The biggest improvement I have seen for performance was to avoid merging all the texts and splitting them into graphemes, but rather splitting the texts at a certain number of characters and recursively iterating through them with String.next_grapheme/1. This improvement was suggested by a very advanced Elixir developer and is pretty advanced code, so I didn't think it was suitable for the video. Let me know if you want more details about either implementation. Thanks again for your suggestion!
@chrissphinx5 жыл бұрын
@@toptechskills very interesting, thank you for the reply!