B4J Question How to solve IDE keyboard lag?

Mashiane

Expert
Licensed User
Longtime User
Are there any errors in the code?
Nope, just the normal warnings #9, #12, #14 etc

Are you working in a very large sub?
I dont think so, whats the longest accepable sub lines? The longest sub is class_globals at 305 lines, otherwise everything else on average is about+-30 lines.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Add some log the current time to see take most of the time via the log intervals.
Perhaps running against the string garbage routine?
repeated conversions in loops?
 
Upvote 0

cklester

Well-Known Member
Licensed User
Doesn't the IDE have a profiler--functionality that lets you see how much time is being used by each line of code?

I also use a language called Euphoria, and here are the docs on the profile functionality. It's pretty useful at times.

And, I quote:

 
Upvote 0

MegatenFreak

Active Member
Licensed User
One of my programs is huge. It has 80+ code/class modules and a total of at least 50,000 lines of code.
But I don't have a keyboard lag problem.
Does it happen right from the start? If it only happens after a while, check your RAM consumption via task manager. My PC has a problem that causes memory leak/build-up after sometime, and only after that happens an occasional typing lag occurs, which is fixed by closing and opening B4J again. it doesn't happen often though.
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Any noticable lag in any other apps at the same time?

When B4J is laggy, does it improve if you create a brand new project (not restarting B4J) and type in it?

Does it improve if you quit B4J and then open it, and your project, again?
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
My PC has a problem that causes memory leak/build-up after sometime, and only after that happens an occasional typing lag occurs, which is fixed by closing and opening B4J again. it doesn't happen often though.
That's what also I am thinking it could be. My laptop is running b4j in development mode almost 80% of the time, besides emails and the occasional googling. This happens after hours and hours of coding non stop. Usually when I start working on it for the first time, performance is good, then it starts performing.

Any noticable lag in any other apps at the same time?
Not that I have noticed of.

When B4J is laggy, does it improve if you create a brand new project (not restarting B4J) and type in it?
Have not tried that.

Does it improve if you quit B4J and then open it, and your project, again?
Yes, this I have done and it has sometimes worked and sometimes not.

I'm going to run CCleaner just to ensure that nothing is clogging the windows pipeline and will observe.

Thanks
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…