Summary: | Ideas to reduce the code size of TAO clients and servers | ||
---|---|---|---|
Product: | TAO | Reporter: | Carlos O'Ryan <coryan> |
Component: | ORB | Assignee: | DOC Center Support List (internal) <tao-support> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P2 | ||
Version: | 1.0.14 | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 162, 465, 1369 | ||
Bug Blocks: | 192 |
Description
Carlos O'Ryan
2000-02-21 19:20:14 CST
*** Bug 143 has been marked as a duplicate of this bug. *** The ideas in bug 451 should help reduce the code size for certain (most?) applications, thus they are relevant for bug #192 We really should avoid static construction. Can it be done using init () functions added to generated code? Singletons? I don't think we can avoid the static constructors. The problem is that we must have variables like this: Foo_ptr _tc_bar; properly initialized. Where Foo_ptr is either Foo* or something that behaves like it. As far as i can tell either you define Foo_ptr as Foo* and then initialize the _tc_bar pointer to some *statically* constructed Foo object *OR* you initialize the Foo_ptr class somehow. As you know these guys are generated, so there is no way to move the initialization into the ORB. Could the Foo_ptr objects be singletons? I don't know, but it seems hard, given that they are supposed to be variables in the global namespace. To tao-support. To tao-support. Bug 1369 documents another idea to reduce code footprint. Changes in the recent past have made this bug report irrelevant. We have progressed a long way from this point. There are other reports out in the bugzilla that have the latest information. The following ChangeLog entries just surmises the biggest changes that have been made in the recent past that changed things dramatcially. Sat Nov 1 05:40:21 UTC 2003 Don Hinton <dhinton@dresystems.com> Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu> |