Import Forms from pyRevit - slow

New job, network, computer, etc…

Finding scripts running slow and traced it down to:

import time

start_time = time.time()
from pyrevit import forms
elapsed = time.time() - start_time

print(elapsed)

That’s taking 9.89716339111 seconds.
And it looks like it is taking the same time on the backend as everything unloads.

This company has pyRevit loaded for all users and running v5.3.1 (will get them to kick that up.)

Any thoughts on the time to load?

Switched forms out to Revit task dialogs and run down to milliseconds. But I still get a 10 second hang at end after the “I’m done” dialog is closed.

Tried on my home system with 6.1.0 load time was 1.52 sec and there was no hang at the end.

First guess: location of the clone or extension?

Is the clone and/or extension installed on the individual machines or on a network share?

If clone/extension is on a “\\server\” share (or VPN) the latency will just bog everything down.

That was the fist thing I thought of… Our documents drive is connected to OneDrive, and I moved everything to root C:\ first just to make sure that wasn’t an issue. pyRevit is installed at C:\ProgramData\pyRevit. C: is an SSD. That had no effect.

Antivirus checking the read access to .py files for all import reads maby?

If located on network, you could test the read write speed outside of pyrevit equally.

  • Rocket mode enabled?
  • Log level to minimum?

Never experienced such delays.
Antivirus or firewall is a good candidate as well
Sentinel one :smiling_face_with_horns:?

Other addins installed?

No network. Rocket on. No logging.

However, on day 2 - the lag disappeared. Go figure.

2 Likes

Pyrevit is so good that it solves its own problem without human intervention :grin:

2 Likes