RSpec story about disappearing classes 1

RSpec story about disappearing classes

ActiveSupport#descendants can be slow. In a bigger system with layers of descendants, finding all of them can be time-consuming: puts Benchmark.measure do 100.times { Dispatchers::Base.descendants } end # 5.235370 0.015754 5.251124 ( 5.251069) In the code I’ve been working on, it meant that a single lookup was taking around 50ms. That is a lot, especially …

RSpec story about disappearing classes Read More »