Open thomthom opened 5 years ago
I do not see a call Kernel#require
or Sketchup::require
in the snippet above ?
No, not in the reload script, but each .rb
file it loads has a number of Sketchup.require
statements.
Might be inefficient lookup of already required files.
SU-44287
With a complex extension like Vertex Tools I'm seeing significant performance impact of
Sketchup.require
overrequire - even when loading
.rbfiles. Had it been
.rbsor
.rbe` I could have understood the decryption having an overhead, but with plain Ruby files I would not expect any significant difference.Reload method for my extension:
An invocation of the reload method yields: (This is loading only
.rb
files)That's slow - considering this will happen upon SketchUp starts as it loads extensions. (Unless I change to lazy-load files.)
If I rewire
Sketchup.require
torequire
......and then run reload:
That's a significant differences which warrant an investigation.