<br><br><div class="gmail_quote">2011/6/27 Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, 27 Jun 2011 16:31:56 -0300<br>
<div>"<a href="mailto:fluisgirardi@gmail.com" target="_blank">fluisgirardi@gmail.com</a>" <<a href="mailto:fluisgirardi@gmail.com" target="_blank">fluisgirardi@gmail.com</a>> wrote:<br>
<br>
</div><div>> 2011/6/27 Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>><br>
><br>
> ><br>
> > TComponent uses linear searches/notifications for each operation. So<br>
> > 1000 components is a bad idea.<br>
> > LCL adds even more searches/notifications, so 300 components is a bad<br>
> > idea.<br>
> ><br>
> ><br>
> And to make 4000 or 10000 components a good idea, what's must be changed?<br>
<br>
</div>A lot.<br>
Are you sure you need that many components? For example some components<br>
uses TCollection and other classes to handle thousands of objects.<br>
Maybe if you explain what you want to achieve people can give an advice.<br>
<div><br></div></blockquote><div><br></div><div>Maybe I started my components with a wrong concept. Each component, represents a memory (or a set of memories) on a remote device (like a PLC) that can be read and/or written. These components can be linked with edits, labels, progress bars and others controls created to show/modifies/stores the value of these components.</div>
<div><br></div><div>For now, I did only small projects using these components (using ~150 tags or components). Today, I started my first big project. On the first time, using the component wizard, I inserted 255*5+1 components. This action takes some time. After this, I tried using my wizard again, to insert 4000 components, and after this the IDE freezes. </div>
<div><br></div><div>I thought use the TCollection, but I don't know if I can represent the following configuration (it's a example, it can have how many PLCBlocks, BlockItems, TagBit, PLCNumbers or PLCStrings the owner of project wants):</div>
<div><br></div><div>Owner (TCollection)</div><div> |</div><div> |-> PLCBlock (now, each below is a component)</div><div> | |</div><div> | |-> BlockItem (0..n items)</div><div> | |-> BlockItem</div>
<div> | | | </div><div> | | |-> TagBit (0..n items)</div><div> |</div><div> |-> PLCBlock</div><div> | |</div><div> | |-> BlockItem (0..n items) </div><div> |</div>
<div> |-> PLCNumber (0..n items)</div><div> | |-> TagBit (0..n items)</div><div> |</div><div> |-> PLCString (0..n items)</div><div><br></div><div>Some idea?</div><div><br></div><div><br></div><div>The best regards,</div>
<div><br></div><div>Fabio</div><div><br></div>
</div>