class RuboCop::Cop::SketchupPerformance::OpenSSL
There are performance issue with the OpenSSL
library that Ruby ship. In a clean SU session, default model there is a small delay observed in the Windows version of SU.
But with a larger model loaded, or session that have had larger files loaded the lag will be minutes.
`SecureRandom` is also affected by this, as it uses OpenSSL
to seed.
It also affects `Net::HTTP` if making HTTPS connections.
Constants
- MSG
- OPEN_SSL_USAGE
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/sketchup/cop/performance/openssl.rb, line 31 def on_send(node) filename = require(node) return if filename.nil? return unless OPEN_SSL_USAGE.include?(filename.downcase) add_offense(node, location: :expression) end