Debug output is terribly slow

Working on new editor enhancements?
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Debug output is terribly slow

Post by MachineCode »

It's meant for displaying debug messages; not the output of copious amounts of data.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Debug output is terribly slow

Post by void »

Machinecode: There's no need to keep repeating that. Just because it's not meant to be fast doesn't preclude the possibility of a problem.

Be aware there are a lot of valid uses for 'displaying debug messages' that aren't pure data dumps, but a way of monitoring the activity of the program in realtime as you're working with it that still produce a large amount of text. In a lot of those cases, log files are a less correct means of accomplishing the goal.

If there's a potential flaw in the implementation, there's nothing wrong with trying to analyze it to determine its behavior and suggest changes if it turns out it's doing something aberrant.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Debug output is terribly slow

Post by Trond »

In fact, by setting the all rows equal height the speed of PB listviews can be improved somewhat (I tested it in a small PB program). This is something that can be done in the gadget library, as every line in a PB listview is supposed to be of equal height anyways.
Post Reply