Sign in Join

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

Mailing lists / lazarus / 1999-07

[RE: A Little Cleanup]

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt
to Michal Bukovjan: But that what Delphi uses is pretty fast. Does anyone have a clue on how much slower…
Michal Bukovjan wrote 10 lines
Curtis White wrote: > > > I agree. I much prefer using XML than what Delphi uses. > But that what Delphi uses is pretty fast. Does anyone have a clue on how much slower would be XML loading of properties at application startup, when there is, say 1000 of properties ? (I don't :-()

It will be pretty slow; you are building a DOM structure based on a XML document; then this DOM must be converted to the real document class; This is a lengthy process.

The XML is good in Design mode; when compiling the binary, it should be converted to something that works faster.

Michael.

Reply by email

Michael A. Hess
to Michal Bukovjan: But that what Delphi uses is pretty fast. Does anyone have a clue on how much slower…
Michal Bukovjan wrote
But that what Delphi uses is pretty fast. Does anyone have a clue on how much slower would be XML loading of properties at application startup, when there is, say 1000 of properties ? (I don't :-()

At this point we are planning on having the LFM file be XML but at compile time it will be compile into binary form for inclusion into the application. So it should be just as fast if not faster than Delphi.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Michal Bukovjan
Show quoted text 10 lines
Experience with the compiler shows that this is what people expect. 90% of all users (if not more) says 'Hey, I have some TP or Delphi code, why won't it compile with FPC ?' With the advent of 'Delphi for Linux' this situation is NOT going to improve; in fact I expect it to worsen a lot. You may or may not like it; but this is a fact. So I would nevertheless opt for a large degree of delphi compatibility; definitely where the basic components are concerned, and low-level stuff as hints;

I vote for this, too.

In the worst case, you just declare 2 properties; 'hint' and 'tip' they're technically only aliases, so your code doesn't get heavier.

I think it does, because the component interface grows, if only a little. This is especially inconvenient in base (root) classes such as TControl, because all descendants then have this, too.

However, Delphi design is not flawless (although its design flaws tend to be minor, just like this Hint<->Tooltip property), and once we have a chance to build things up again, with little backward compatibility concerns, we should make the things right as much as we can.

Delphi was not designed as mutliplatform, multi-control-set-aware anyway.

Show quoted text 8 lines
Don't think that I want you to make an exact Delphi clone; I'm just sharing my experiences here. On the other hand; you will need to make a dfm2lfm tool anyway for the very same reasons; you could make that tool 'property - aware' in the sense that it could make a translation of well-known Delphi properties to lazarus properties.

And this is exactly the piece which would glue Delphi (with its flaws) and Lazarus (no flaws :-)) the least painful way.

Michal Bukovjan

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email

Michal Bukovjan
Curtis White wrote 5 lines
I agree. I much prefer using XML than what Delphi uses.

But that what Delphi uses is pretty fast. Does anyone have a clue on how much slower would be XML loading of properties at application startup, when there is, say 1000 of properties ? (I don't :-()

Just curious.

Michal Bukovjan

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email