• J
    Fully initialize routes before the first request is handled · 5b1332bb
    Jean Boussier 提交于
    `AD::Journey::GTG::Simulator` is lazily built the first time
    `Journey::Router#find_routes` is invoked, which happens when
    the first request is served.
    
    On large applications with many routes, building the simulator
    can take several hundred milliseconds (~700ms for us).
    
    Triggering this initialization during the boot process reduces
    the impact of deploys on the application response time.
    5b1332bb
route.rb 4.8 KB