![Smile :)](images/smilies/icon_smile.gif)
Leaving the default number of runs, the CreateWindow part runs "instantly" UNsandboxed. It should take at least 1 second, probably even on the fastest systems (??), in a sandbox with default settings. If one happens to have some window class settings that degrade performance (for whatever reason?!), and/or MORE windows and stuff open, it will get worse, etc... That's for just 1,000 CreateWindow calls, so it adds 1ms PER call (usually measured in millionths!). Of course it takes 10 seconds, give or take, on my system with defaults, so that adds 0.01s PER call! (1 million in 1.3s */UNsandboxed)
I'd be willing to bet anyone's Sandboxie license that they'll see the same results.
![Wink ;)](images/smilies/icon_wink.gif)
![Smile :)](images/smilies/icon_smile.gif)
To get a taste of how close you could be to crippling performance (more windows, "bad" OpenWinClass), just add to your settings:
ProcessGroup=<Anything>,*.exe
OpenWinClass=<Anything>,*
Not to discount tzuk or anyone else (not "noticing," etc.), but now we all have an example program to highlight the problem. I've already said before that depending on how much other "junk" someone is running on their system slowing things down already, of course the overall relative difference can be less. I run NOTHING to slow stuff down. Heck, it's like even Sandboxie 3.76 chokes browser opening, etc. (but it's "just tolerable" and understandable). I'm used to almost INSTANT everything without sandboxing, so I'm just hoping to help get as close back to that experience as possible.
![Very Happy :D](images/smilies/icon_biggrin.gif)
tzuk, I think this also nailed why toggling Work Offline in IE 6 freezes the browser for a bit (that I've been mentioning for a while). Toggling Work Offline does 30 CreateWindow calls (almost as many as opening a new IE window: 30-something). Since Sandboxie is adding ~0.01 per, that's 0.3s which is just about what I'm feeling. Obviously, it gets worse with more windows open. Using * (prefix) will freeze IE for a FEW SECONDS. Again, just verifying the pattern...
Firefox? Not as many CreateWindow calls, which explains why I never felt too much with it. Is it using resource-based dialogs or something?? Not sure how they make their window stuff with fewer CreateWindows (but I don't know that much about this stuff!), but as I said, I couldn't cause a slowdown with my resource-based dialog anyway.
The CreateWindow slowdown would also explain the delay I've always felt (default settings) with Common Open/Save dialogs, OE's Create Mail, etc.
API Monitor is REALLY slow like I said (didn't investigate at all) -- maybe it's more like those other super-slow programs others have reported?
Finally, another slow one is PowerArchiver (2011)... Launching? 100-something CreateWindow calls. Options > Configuration window? 200+ calls! Slow!
Everything fits the explanation.
![Smile :)](images/smilies/icon_smile.gif)
BTW, I noticed in 3.76 that CreateWindow also gets slower as more windows are opened (it just starts out better). I probably did notice that a bit last fall. And instead of SbieSvc, running GUI Bench causes some CPU usage in sandboxed IE process!?
![Confused :?](images/smilies/icon_confused.gif)