2 ms·
What an interesting article to read, I enjoyed reading it a lot. Regarding the following part: > I recently had a situation where we had to process 10k items,
by Alifatisk 3y ago
What an interesting article to read, I enjoyed reading it a lot.
Regarding the following part:
> I recently had a situation where we had to process 10k items, which included mapping them once, running each item item through a string template, and then serializing it all to JSON. This process took over 20 seconds. After doing benchmarking I found that all the time was just spent in ruby iteration time, so there was very little I could do to speed this process up.
I am very curious to see if there was actually any optimizing that could be done. Things in Ruby can be done in sooo many ways that finding the most suitable path to approach it can be difficult. If would appreciate it a lot if the Author could recreate that environment and share it! (I'm thinking of isolating that part of the script)