cog
cog copied to clipboard
Improve performance of `format:table` with many items
@agis reported that generating a table with 40 rows takes 20 seconds. Let's improve the speed here by looking at how quickly we can make each invocation respond. I think the best we can do without changing how containers are created would be about 8 seconds due to the cost of starting a container for each invocation; still a decent improvement.
Note that we were using an in-house, native version of the "format" bundle - no containers involved. Most of the time was spent in gems being loaded by bundler (ie. Bundler.setup in the 'cog-rb' gem).