B4J Question The bigger the code - the slower the IDE

ranul

Member
Licensed User
Longtime User
Hi,

My B4J project is made of about 100 modules and a total of 20000 lines of codes.
It's the biggest project that I wrote in B4J, but I've written much bigger projects in different IDE's like Visual Studio and PyCharm.
The problem is that the B4J IDE is becoming slower and slower as the code is getting bigger.
It's almost impossible to type now. Sometimes I open the bas file in VS Code and I write the code there, but I don't have the B4J intellisense there.

My laptop is a new laptop from last year with Core i7 and 16GB memory and SSD.

Anybody else familiar with this slowness problem?

Thanks
 

aeric

Expert
Licensed User
Longtime User
I guess it can be that you have too much assets files and they are huge in size. The auto backup may need more time to compress the zip file.
 
Upvote 0

ranul

Member
Licensed User
Longtime User
I guess it can be that you have too much assets files and they are huge in size. The auto backup may need more time to compress the zip file.
I disabled Auto Save and Auto Backup. There is no improvement.
The Intellisense is the thing that makes everything slow.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I have 1 project with B4XMainPage alone contains 14k lines of codes (500 global variables). I also have project with 120 modules.
I have a low spec i7-8650U 1.90GHz CPU but 24GB RAM on Windows 11.

B4J v10.20
Auto Save on.
Auto Backup on.
Disable Implicit Auto Completion off.
Auto Format When Pasting on.

Some Chrome tabs open.
So far I don't experience slow. I don't know if I type slower than intellisense.
 
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
I noticed some kind of memory leak in B4A IDE when I often compile the code in Debug mode. The process eats up the memory and when B4a.exe it is close to 4 GB I have to close and restart it, because it gets slower and slower even when I'm just typing some code. Maybe your B4j process allocated to much of your memory?
 
Upvote 0

ranul

Member
Licensed User
Longtime User
I upgraded to B4J 10.20 and for now the slowness was resolved.
I am not sure if it something in version 10.20 or maybe just a fresh installation solved it.
 
Upvote 0
Top