[SOLVED] Very slow editor - independent of settings

Working on new editor enhancements?
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

:idea: :idea: :idea:

After several days of search, deinstalling, reinstalling, changing 100s of settings, and finally reinstalling windows the murder is out! I now know for sure, what caused the IDE being so slow. It was a very specific app, that only german users might have, the "1&1 smartdrive (uploadmanager)". "1&1" is a german provider and you can get some cloud space there. For better access, you can install the app "1&1 smartdrive (uploadmanager)", it mounts the cloud space, so you have a drive letter and can handle it easily with the windows explorer (so it's like a network drive). I never had problems using this app, and it never slowed down anything.

However, if you install this app, it slows down the purebasic IDE. You don't notice that if you only create small projects (that's what I usually do), but the IDE gets extremely slow for big projects. I don't know what's happening there, but obviously purebasic tries to access this network drive (I never added this drive to purebasic). And now it's getting weird: Even if you close the 1&1 app (via task manager), the IDE stays slow. The only thing that works is deinstalling the 1&1 app.

:?: Unanswered question: Why does a network drive slow down the purebasic IDE :?:

PS: Some posts ago I wrote, that it could be the monitor driver, but that was a really crazy coincidence, so just forget that :wink: .
AZJIO
Addict
Addict
Posts: 2143
Joined: Sun May 14, 2017 1:48 am

Re: Very slow editor - independent of settings

Post by AZJIO »

Compile IDE with function:

Code: Select all

SetErrorMode_(#SEM_FAILCRITICALERRORS)
Perhaps this will fix the problem.
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Very slow editor - independent of settings

Post by HeX0R »

I could say now something like "didn't I tell you?", but no, I'm happy you nailed it finally.
As written before, I know those effects very well, and I know that it is a pain in the ### to spot it.
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

AZJIO wrote: Wed Oct 30, 2024 9:55 pm Compile IDE with function:

Code: Select all

SetErrorMode_(#SEM_FAILCRITICALERRORS)
Perhaps this will fix the problem.
No change / no effect.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Very slow editor - independent of settings

Post by Fred »

The only gadget which can remotely have an impact on remote drive is the explorertreegadget which is used in the explorer tools. You can try to remove the tool from the IDE right panel and see if it does any diff. But I'm using a lot of remote drive (onedrive, SFTP drive etc.) and never encounter this stuff, so it could very well be a bug in the 1&1 software. Contacting them might worth it.
PBJim
Enthusiast
Enthusiast
Posts: 294
Joined: Fri Jan 19, 2024 11:56 pm

Re: Very slow editor - independent of settings

Post by PBJim »

Fred wrote: Thu Oct 31, 2024 12:34 pm The only gadget which can remotely have an impact on remote drive is the explorertreegadget which is used in the explorer tools. You can try to remove the tool from the IDE right panel and see if it does any diff. But I'm using a lot of remote drive (onedrive, SFTP drive etc.) and never encounter this stuff, so it could very well be a bug in the 1&1 software. Contacting them might worth it.
Indeed, I also use network drives without difficulty and dangerfreak indicated in the below post that he had cleared out all the settings which related to former files, by using mk-soft's utility, which we'd expect would have removed any network destinations. viewtopic.php?p=629616#p629616

A third-party application, being causative, had been suggested by HeX0R already :
HeX0R » Tue Oct 29, 2024 7:52 pm
I think it is coming from some third party thing, we don't really know which tools you have installed.
But dangerfreak said, "one of the computers was a clean windows installation without anything else" :
dangerfreak » Tue Oct 29, 2024 8:29 pm
I don't believe in this third party thing, because I like to keep things easy and only install what I really need (portable apps preferred). One of my 4 computers is nearly a clean windows installation without anything else. But the IDE is slow there, too.
We don't usually know what kind of weird or clever tricks these system-level applications need to perform as necessary work-arounds, in order to achieve their purpose. I'm sure that in doing so, they break other functions elsewhere.
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

PBJim wrote: Thu Oct 31, 2024 1:05 pm But dangerfreak said, "one of the computers was a clean windows installation without anything else" :
Well... nearly clean, I forgot the 1&1 smartdrive - this app was already installed. :oops:

Fred wrote: Thu Oct 31, 2024 12:34 pm The only gadget which can remotely have an impact on remote drive is the explorertreegadget which is used in the explorer tools. You can try to remove the tool from the IDE right panel [...]
Unfortunately that doesn't work, I removed everything from the panel.

Fred wrote: Thu Oct 31, 2024 12:34 pm [...] so it could very well be a bug in the 1&1 software. Contacting them might worth it.
Yes, it might be a bug. But where is the correlation between a network drive and an IDE?! Remember, even scrolling or moving the cursor took seconds. Does the IDE immediately save the cursor position or any changes? Where does it save these data? Why does just opening the preferences take very long (independent of the source code length)? Can you see a correlation? Don't get me wrong, I don't want to blame anyone! I just like to solve riddles :D .

However, contacting 1&1 won't help, the app is very old (2011) and never was updated - because only long-term customers (like me) still have this cloud space. New customers don't get it anymore, so they obviously want to get rid of it.
PBJim
Enthusiast
Enthusiast
Posts: 294
Joined: Fri Jan 19, 2024 11:56 pm

Re: Very slow editor - independent of settings

Post by PBJim »

dangerfreak wrote: Thu Oct 31, 2024 1:26 pm Yes, it might be a bug. But where is the correlation between a network drive and an IDE?! Remember, even scrolling or moving the cursor took seconds.
That just sounds to me like the tool is consuming resources because it isn't working properly. Perhaps IONOS resorted to some Windows-level trickery to achieve certain features and that those cheats longer work satisfactorily with current OS versions. It might be affecting legitimate use of resources needed by other applications.
fryquez
Enthusiast
Enthusiast
Posts: 391
Joined: Mon Dec 21, 2015 8:12 pm

Re: Very slow editor - independent of settings

Post by fryquez »

dangerfreak wrote: Thu Oct 31, 2024 1:26 pm But where is the correlation between a network drive and an IDE?!
There is not really one. The shell extension form 1&1 is the problem.

Can't you map the cloud using WebDav?
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

fryquez wrote: Thu Oct 31, 2024 2:01 pm
dangerfreak wrote: Thu Oct 31, 2024 1:26 pm But where is the correlation between a network drive and an IDE?!
There is not really one. The shell extension form 1&1 is the problem.

Can't you map the cloud using WebDav?
Yes, that's possible - and the IDE stays fast using WebDav. That's why I use it meanwhile instead of the app.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Very slow editor - independent of settings

Post by Fred »

Of course there is nothing wrong with the IDE, while editing it's just the scintilla stuff and nothing more. As it's an old app not even updated for new windows, it's not surprising it creates issues.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Very slow editor - independent of settings

Post by skywalk »

Wow :shock: This is a long thread!

I am on multiple Windows 10 PCs and no problems with the IDE for ~75k line apps.
I only recently upgraded 1 PC to Windows 11, so I have to verify that case.
My use model:
1. Whitelist your install folder -> C:\MyLocationOfPureBasic\*.*
2. Whitelist your dev folder -> C:\MySourceCode\*.*
3. Disable check for new version.
4. Disable History.
Early on this crashed my IDE.
I use fossil.exe for my version control software.
You can too or git or any others.
5. I do not use projects. Instead I prefer explicit #includefiles.
Early on I found projects would crash my IDE if I opened and compiled non-project files.
Without projects, I run with 6 or 7 source files open and compile any files at will.
6. Compiler and IDE options:
Place at the top of your code for documenting.
Important information to verify your code compiles via commandline.
I put example run below.

Code: Select all

; =================================================
; COMPILER OPTIONS:
;   [ ] Main source file:
;   [x] Use Compiler:   PureBasic 6.11 - C Backend (Windows - x64)
;   [x] Use Icon:       C:\dev\myapp\img\myapp_16x16.ico
;   [x] Optimize generated code
;   [ ] Enable inline ASM syntax coloring
;   [x] Create threadsafe executable
;   [ ] Enable OnError lines support
;   [x] Enable modern theme support (for Windows XP and above)
;   [ ] Request Administrator mode for Windows Vista and above
;   [ ] Request User mode for Windows Vista (no virtualisation)
;   [ ] Enable DPI aware executable (Windows)
;   [ ] Enable DLL preloading protection (Windows)
;   Library Subsystem:
;   Executable format:        Windows ;|Console|Shared DLL
;                             All CPU ;|Dynamic|w/MMX|w/3DNOW|w/SSE|w/SSE2
;   Linker options file:      
; COMPILE/RUN:
;   Debugger:
;     [x] Enable Debugger
;     [x] Enable Purifier
;     [ ] Use selected Debugger:      ;Integrated IDE Debugger
;     [ ] Use Warning mode:           ;Display Warnings
;   Run executable with:
;     Executable Commandline:         ;
;     Current directory:              ;C:\dev\lib\
;     [x] Create temporary executable in the source directory
; CONSTANTS:
; VERSION INFO:
;   [ ] Include Version Information
;   Update version info in:   auto set fields --> %yy.%mm.%dd
; RESOURCES:
;   C:\dev\some-resource.rc
; IDE PREFERENCES:
;   Compiler:Defaults:
;     Sourcefile Text encoding: UTF-8
;   ToolsPanel:Configuration:Procedure Browser
;     [x] Sort Procedures by name       ;<-- Alphabetical instead of order of appearance. Uncheck when location of Proc desired.
;     [ ] Group Markers                 ;<-- If checked, ';-!' priority listing is lost.
;     [ ] Display Procedure Arguments   ;<-- Too busy if checked.
;   Editor:
;     Save Settings to: The end of the Source file
;                       | The file <filename>.pb.cfg | A common file project.cfg for every directory | Don't save anything
;     Tab Length:       2 [ ] Use real Tab (ASCII 9)
;     Source Directory: c:\dev\
;   Debugger: 
;     Choose Debugger Type:  Integrated IDE Debugger ;|Standalone GUI Debugger|Console only Debugger
;     Choose Warning level:  Display Warnings
; CMD LINE COMPILER:
;   c:\purebasic-x86\compilers\pbcompiler -c -t "C:\dev\myapp\myapp.pb" /DYNAMICCPU /XP /RESOURCE "c:\dev\myapp\myapp.rc" /ICON "C:\dev\myapp\img\myapp-32x32-8.ico" -o "C:\myapps\myapp\myapp-asmv601b2.exe
; RETURN:
; PureBasic 6.01 LTS beta 2 (Windows - x64)
; Compiling C:\dev\myapp\myapp.pb
; Loading external libraries...
; Starting compilation...
; Including source: ..\lib\1.pbi
; Including source: ..\lib\2.pbi
; Including source: ..\lib\3.pbi
; Including source: ..\lib\4.pbi
; Including source: ..\lib\5.pbi
; Including source: ..\lib\6.pbi
; Including source: ..\lib\7.pbi
; Including source: ..\lib\8.pbi
; Including source: ..\lib\9.pbi
; Including source: ..\myapp\10.pbi
; Including source: ..\myapp\def.pbi
; Including source: ..\myapp\11.pbi
; Including source: ..\myapp\12.pbi
; Including source: ..\lib\13.pbi
; Including source: ..\myapp\14.pbi
; Including source: ..\lib\15.pbi
; Including source: ..\myapp\16.pbi
; Including source: ..\myapp\17.pbi
; Including source: ..\myapp\18.pbi
; 67322 lines processed.
; Creating executable "C:\myapps\myapp\myapp-asmv601b2.exe".
; 
; - Feel the ..PuRe.. Power -
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Very slow editor - independent of settings

Post by SPH »

I'm glad you found where the IDE slowness came from. I've been following your problem every game until today.

Good Job

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
dangerfreak
User
User
Posts: 80
Joined: Tue Jan 12, 2010 4:56 pm

Re: Very slow editor - independent of settings

Post by dangerfreak »

Well, I think it's time to say thank you to all supporters... it was a big headscratcher, because nothing made sense and then some really crazy coincidence made it even harder (the monitor driver was a wrong track). Still I can't understand, why a network drive affects an IDE. However, solved is solved, and I think we can close this topic.

Thanks again @ all.

For all who jump into this topic and want to see the solution immediately: I had to deinstall the "1&1 smartdrive (upload manager)", which is an app that mounts cloud space from the provider "1&1".
Post Reply