Page 1 of 2
					
				Compilation in progress ...
				Posted: Sat Feb 18, 2006 2:48 pm
				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:
 
Some other having this problem?
 
			
					
				
				Posted: Sat Feb 18, 2006 5:05 pm
				by Fred
				you have a firewall/antivirus ?
			 
			
					
				
				Posted: Sat Feb 18, 2006 5:07 pm
				by Psychophanta
				Fred wrote:you have a firewall/antivirus ?
Yes, NortonAV + ZoneAlarmPro
is ZoneAlarm?. It does strange things sometimes.
 
			
					
				
				Posted: Sat Feb 18, 2006 5:13 pm
				by Fred
				just try to disable  them to see if the compilation is faster ?
			 
			
					
				
				Posted: Sat Feb 18, 2006 9:07 pm
				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.
			 
			
					
				
				Posted: Sat Feb 18, 2006 10:01 pm
				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) 

 
			
					
				
				Posted: Sat Feb 18, 2006 11:18 pm
				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
			 
			
					
				
				Posted: Sat Feb 18, 2006 11:22 pm
				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?
 
			
					
				
				Posted: Sun Feb 19, 2006 1:39 am
				by Fred
				It doesn't happen here.
			 
			
					
				
				Posted: Sun Feb 19, 2006 9:51 am
				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.
 
			
					
				
				Posted: Sun Feb 19, 2006 10:40 am
				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?
			 
			
					
				
				Posted: Sun Feb 19, 2006 1:12 pm
				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...
 
			
					
				
				Posted: Sun Feb 19, 2006 1:19 pm
				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.
 
			
					
				
				Posted: Sun Feb 19, 2006 1:20 pm
				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..
			 
			
					
				
				Posted: Sun Feb 19, 2006 1:21 pm
				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)