Same Programm have different runtime xp (1sec) win 7 (5 sec)

Just starting out? Need help? Post your questions and find answers here.
Ausprobieren
New User
New User
Posts: 6
Joined: Thu May 29, 2014 1:42 pm

Same Programm have different runtime xp (1sec) win 7 (5 sec)

Post by Ausprobieren »

Hello people,

ich have a interesting performance by one of my Programs. I have found this code in the Purebasic examples, modified this coding and compiled this. All its normally. Now, i want to change any lines at this program, and i compiled ths and the reponse time get from < 1 second to over 5 Seconds.
My code-changing is not the reason, because i have an idea. I compiled the same program in my virtual pc sp1 under xp sp3 on the same computer and see now: the response time is the same like in the past.

Have any user an idea, what is the problem. I thought, i habe an virus, nothing.

Thanks in the future.

IH
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Same Programm have different runtime xp (1sec) win 7 (5

Post by Danilo »

Ausprobieren wrote:Have any user an idea, what is the problem. I thought, i habe an virus, nothing.
Could be the opposite, your anti-virus. :)

Try to use compiler option "[X] Create temporary executable in the source directory", and
add PB to the anti-virus exception list. By default PB creates the temp executable in %TEMP%,
and this may cause slow-downs. MS Security Essentials for example had this problem -
looks like it is scanning %TEMP% in more detail, especially .EXE created within %TEMP%.

For excluding PureBasic itself from Microsoft Security Essentials scan (so compilation is faster),
see PB compilation problems with MSE.

- Whole thread: PB compilation problems with MSE
Ausprobieren
New User
New User
Posts: 6
Joined: Thu May 29, 2014 1:42 pm

Re: Same Programm have different runtime xp (1sec) win 7 (5

Post by Ausprobieren »

Danilo wrote:
Ausprobieren wrote:Have any user an idea, what is the problem. I thought, i habe an virus, nothing.
Could be the opposite, your anti-virus. :)

Try to use compiler option "[X] Create temporary executable in the source directory", and
add PB to the anti-virus exception list. By default PB creates the temp executable in %TEMP%,
and this may cause slow-downs. MS Security Essentials for example had this problem -
looks like it is scanning %TEMP% in more detail, especially .EXE created within %TEMP%.

For excluding PureBasic itself from Microsoft Security Essentials scan (so compilation is faster),
see PB compilation problems with MSE.

- Whole thread: PB compilation problems with MSE
Ok, i understand. I make this settings and get an compile. Nothing changed. The same performance. For my part i wondering because the Execution workload is very high for a small time on Win 7 and the other from xp have only a little bit Execution workload. I don't understand it. Are there other Lib's or Program's by Purebasic under Win 7 ?
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Same Programm have different runtime xp (1sec) win 7 (5

Post by Kuron »

Are you sure you have proper permissions for the directories you are trying to access on Windows 7? On Windows, PB generally installs everything under c:\Program Files, including the examples. On Windows 7, this is a protected directory and depending on the rights/permissions you have, trying to compile an example in a sub-directory off the PB directory could cause the EXE to be created in your virtual store in some instances. Is this the issue? I don't know, but it is something to check.

PB programs will run fine under Windows 7 and most will work fine under XP.
Best wishes to the PB community. Thank you for the memories. ♥️
Ausprobieren
New User
New User
Posts: 6
Joined: Thu May 29, 2014 1:42 pm

Re: Same Programm have different runtime xp (1sec) win 7 (5

Post by Ausprobieren »

Kuron wrote:Are you sure you have proper permissions for the directories you are trying to access on Windows 7? On Windows, PB generally installs everything under c:\Program Files, including the examples. On Windows 7, this is a protected directory and depending on the rights/permissions you have, trying to compile an example in a sub-directory off the PB directory could cause the EXE to be created in your virtual store in some instances. Is this the issue? I don't know, but it is something to check.

PB programs will run fine under Windows 7 and most will work fine under XP.
OK, my config ist Win 7 under C:, Purebasic under D:, Workdirectory Purebasic under E: and I have started the compiled program (console) with Adminrights. The same performance.

I understand your mistrust, but i have no intuition, what for a problem otherwise it is.

Works Win 7 with older mainboards in a other wise? Is this perhaps an idea.
Post Reply