Re: bind vs. interp on Windows 10
- Posted by irv May 28, 2019
- 1362 views
Thanks. I ran into this problem while trying to find out why EuGTK seems to run more slowly on Windows than on Linux. After inserting some timing statements, I discovered that it isn't really *running* much slower, it's just *starting* slower, which gives the appearance of running more slowly.
The actual times, once Windows decides to let me run my own program, are very close:
Windows | Linux |
---|---|
load Eu includes 0.156 | Load Eu includes 0.3 |
build interface 0.031 | build interface 0.01 [1] |
startup GTK 0.813 [2] | startup GTK 0.06 |
load big file 0.031 | load big file 0.02 |
total 1.031 sec | total 0.39 |
[1] I was surprised that, as complex as EuGTK is, Euphoria was able to process and link all those GTK calls, set up a registry, and create the various controls in such a short time. Pretty powerful!
[2] While it's obvious that Linux is faster here (since it's working with native shared libraries vs. the GTK shim), nobody would notice the extra six tenths of a sec or so that Windows needs - if that were all that's involved.
All the extra startup (close to 4 sec when bound) seems to be before Euphoria has even started.