Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-02

Priority...

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Samuel Liddicott
Show quoted text 13 lines
-----Original Message----- From: Marc Weustink Sent: Sunday, February 13, 2000 09:53 AM To: Subject: RE: [lazarus] Priority... At 17:43 09-02-2000 -0000, Samuel Liddicott wrote: > >I beg people to avoid readln and writeln serious code. >Even borland avoid it. There is nothing wrong in using WrileLn in a console app.

True.

Sam

Reply by email

Peter Vreman
to Shane Miller: I think we should look at removing all the writeln's that are slowing Lazarus down. It…
Shane Miller wrote
I think we should look at removing all the writeln's that are slowing Lazarus down. It is most evident in the loading of a file into the mwedit component (at least I hope that's why it's slow). Let's get those removed and use the trace or an ifdef. We need to see if that's whats slowing Lazarus down so much.

There is something called as a profiler that does the thing for you ;)

Compile using -pg

run lazarus

run gprof lazarus > prof.log

Reply by email

Shane Miller

I think we should look at removing all the writeln's that are slowing Lazarus down. It is most evident in the loading of a file into the mwedit component (at least I hope that's why it's slow).

Let's get those removed and use the trace or an ifdef. We need to see if that's whats slowing Lazarus down so much.

Shane

Reply by email

Marc Weustink
to Shane Miller

Just got back from my ski trip so a bit late reply:

Shane wrote
I think we should look at removing all the writeln's that are slowing Lazarus down. It is most evident in the loading of a file into the mwedit component (at least I hope that's why it's slow).

I think the main problem of the slow loading of the editor is the way the editor uses fonts. For every change of style a new font is created (and destroyed (I hope)). I had this problem also when loading a few lines when I used a (slow) remote fontserver. When I swiched back to a lokal server, it loaded much faster.
I can imagine that on larger files this slows down.

Let's get those removed and use the trace or an ifdef. We need to see if that's whats slowing Lazarus down so much.

Most of my writelns are for temporary tracing. When I fixed something I'll remve them or change them to a trace.

Marc

Reply by email