- Defined in:
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.
Constant Summary collapse
- MSG =
'Avoid use of OpenSSL within SketchUp due to severe performance issues.'.freeze
- OPEN_SSL_USAGE =
%w[openssl securerandom net/https net/http]
Constants included from
Instance Method Summary collapse
Methods inherited from
Instance Method Details
#on_send(node) ⇒ Object
30 31 32 33 34 35
# File 'lib/rubocop/sketchup/cop/performance/openssl.rb', line 30 def on_send(node) filename = require(node) return if filename.nil? return unless .include?(filename.downcase) add_offense(node, location: :expression) end