OpenSSL causing very slow Rails boot time on Windows

前端 未结 3 1464
别那么骄傲
别那么骄傲 2021-01-18 21:24

I\'m having a problem with Ruby on Rails running extremely slowly. I\'m using Ruby 2.1.3p242 and Rails 4.2.1 on a Windows 8 machine.

Whenever I run anything that req

3条回答
  •  后悔当初
    2021-01-18 22:13

    I have been a windows rails dev for a while now. I have never solved this rails startup issue. Running a microsecond Rspec test takes rails 22 seconds to load on my PC. When I (temporarily) comment out the line in securerandom.rb (all ruby versions) and replace it with a hardcoded return the startup time is reduced to 10 seconds.

    #return OpenSSL::Random.random_bytes(n)
    return "\xD3\x04F\f0\xD6{G\xB9\x81"
    

提交回复
热议问题