Compilation in progress ...

Everything else that doesn't fall into one of the other PB categories.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Compilation in progress ...

Post by Psychophanta »

Since version 3.90 or so i have noticed that compiler takes long to compile sources, and even sometimes it stops showing this:
Image

Some other having this problem?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

you have a firewall/antivirus ?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Fred wrote:you have a firewall/antivirus ?
Yes, NortonAV + ZoneAlarmPro

is ZoneAlarm?. It does strange things sometimes.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

just try to disable them to see if the compilation is faster ?
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Indeed an antivirus will slow down to a halt in the case that it will detect the new exe and examine it. Some funny things could happen during that time!.

So would a firewall if your program is trying to reach the net for example. but during compilation time a firewall would not care about your new exe... Just an antivirus would - and that if its setup to do so. In the case of ANTIVIR (which, sucks and the support is even worst) I can say that even by filtering the entire dir of PB the core will still scan your new exe.. sometimes it will take long sometimes short, depends on many factors!. So yes if you are going to programm for reals then just have a pc for that.. and no inet access at all, so no other services running on background, just max speed for development.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

It also depends on system performance and how much source you have. I have NOD32 anti-virus but no firewall. When I compile a simple source (about 50 lines) I don't get the message, but with bigger projects (more than 2500 lines) I get the message and it floats about 5 seconds before the program starts.

(3.2GHz Intel Pentium 4 HT, Fujitsu Siemens Scaleo 600, with extra RAM (1,5Gb) and ATI Radeon 9800XT) :wink:
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i've seen this once or twice, when just when i started a compilation i did click on the ide somewhere else, and the compilation (started with f5) didn't go anywhere, it has happened but i could not reproduce it

i know that my virus scanner does slow down things, when devving on my old sony (p3-500) or similar machines i snooze the antivirus package
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@Psychophanta:
I have reported the same problem white beta phase of v4 and the problem still exist in the latest beta 3 version!

@Fred:
I have no firewall...

here is once the again the example source, i posted some time ago but cant find my post...

Code: Select all


; This is just a small PureBasic v4 Compiler Test
;
; Go to the compiler options and disable ALL checkboxes!
; Now try to compile the source and it will take a few seconds!
;
; You can solve the problem when activating "ENABLE DEBUGGER"
; in the compiler options menu! Also with disabled debugger, the
; compiler need more longer to compile?
; 
; Another way to solve this... Just only copy and paste the
; complete "Part2" section between EndProcedure and before
; starting the "Part1" section! Can someone confirm and explain
; this? 

MessageRequester("PureBasiv v4","Compiler Test",0)

screenWidth  = 640
screenHeight = 480

Dim Dimension_Test (screenWidth , screenHeight)

Procedure.f ATan2(y.f,x.f)
  !fld dword[p.v_y]
  !fld dword[p.v_x]
  !fpatan
EndProcedure

;{ -------- Part 1 - Calculations --------

    For x = 0 To 255
      For y = 0 To 255
        Dimension_Test(x,y) = a + b                            
      Next 
    Next
    
    For x = 0 To screenWidth * 4 ;-1                   
      For y = 0 To screenHeight * 4 ;-1 
        calculation = Int(32 * 192) 
      Next
    Next
;}

MessageRequester("PureBasiv v4","Compiler Test",0)

;{ -------- Part 2 - Initialisation --------

  If InitSprite() = 0
    MessageRequester("Error","Cant Init Sprite!",0)
    End
  EndIf
 
  If InitKeyboard() = 0
    MessageRequester("Error","Cant Init Keyboard!",0)
    End
  EndIf
  
  If InitSound() = 0
    MessageRequester("Error","Cant Init Sound!",0)
    End
  EndIf
  
;  If InitModule() = 0
;    MessageRequester("Error","Cant Init Module!",0)
;    End
;  EndIf
    
  If OpenWindow(0,0,0,640,480,#PB_Window_WindowCentered |#PB_Window_ScreenCentered ,"Small Compiler Test") = 0
    MessageRequester("Error","Cant open Window!",0)
    End
  EndIf
    
  If OpenWindowedScreen(WindowID(0),0,0,640,480,0,0,0) = 0
    MessageRequester("Error","Cant open Windowed Screen!",0)
    End
  EndIf

;}  
  
End
Maybe some more ppl can test this!? Here are my speed results....

11 seconds - without enabled debugger
1 second - with enabled debugger

So why is it so slow without enabled debugger and without using any firewall? Isnt it unlogical?
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It doesn't happen here.
TeddyLM
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Apr 30, 2003 2:04 pm
Location: Germany (French expat)

Post by TeddyLM »

I noticed the same behavour with the 3.94 version...
(Didn't read about such a problem hier so i thought it was because of me! :) )
I'm using Antivir and Sygate Personal Firewall.
It's difficult to test without antivirus because it happens erratically and most of the time i can't reproduce.
Anyway i have much less inconvenience with the 4th version.

You did a great job guys.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I've tried with another computer without inet connection, and without antivirus and firewal and it compiles how it must. But compilations slow down sometimes and sometimes don't; usually it slow down when open PB editor, load a source on it and compile&run, but usually 2nd time and so on you do a compile&run, it work normally. Even a couple of times or more i got it hanged! and i had to close PB editor window (which it is allowed normally, without the use of taskmanager).

The strange thing is that the CPU use while PB compiler displays the message i posted above, is zero. This is the reason i don't suspect about antivirus nor firewall.

To TeddyLM, Blueznl, va!n, josku & dagcrack, or those who suffer about this: do you use AvantBrowser? what is your inet browser?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

psychophanta wrote:
To TeddyLM, Blueznl, va!n, josku & dagcrack, or those who suffer about this: do you use AvantBrowser? what is your inet browser?
I still use latest version of FireFox and i still have installed IE, latest ServicePack and all (!) HotFixes! But what the hell has the browser to do with the compiler time (from 1 to 11 seconds?) - i dont get the point...
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

It's weird, i get the same slowdown (tested on 3.94 and the 4.0 betas). Compiling this part with the debugger off

Code: Select all

For x = 0 To 640 * 4
    For y = 0 To 480 * 4
        calculation = Int(32 * 192)
    Next
Next
takes about 10 seconds. With debugger on it is instant. Anti-virus/firewall/browser on or off makes no difference here.
Mat
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Its rather weird.. My machine compiles both mr mats and vains code in under 1 second, with and without debugger..

All tests are done with Norton Antivirus and worm protection on..
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@MrMat:
Thanks for the feedback! This is exactly what i reported some time ago... hope some more ppl can confirm this and that we will find the problem for this... thanks!

Have you tried following test with the example source?

; Another way to solve this... Just only copy and paste the
; complete "Part2" section between EndProcedure and before
; starting the "Part1" section! Can someone confirm and explain
; this?

Then the compiling will be very fast! A bit strange... Tested on a brand new installed WinXP System (2 days old)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Post Reply