Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-23 Thread Pete Robbins
Thanks for the patch. We'll apply it and test it asap. Cheers, On 22/11/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: http://issues.apache.org/jira/browse/TUSCANY-946 to track separatly, although 563 work was the originator. On 11/21/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: > > http://issues.a

Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-22 Thread Yang ZHONG
http://issues.apache.org/jira/browse/TUSCANY-946 to track separatly, although 563 work was the originator. On 11/21/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: http://issues.apache.org/jira/browse/TUSCANY-563 Thanks. On 11/21/06, Pete Robbins <[EMAIL PROTECTED]> wrote: > > On 21/11/06, Yang

Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-21 Thread Geoffrey Winn
On 21/11/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: There's a way of using std::string in Tuscany which might allocate/release heap and copy memoery too frequently. Could you please verify that's the case and brainstorm an optimization? std::string is just an example, using object vs. using &/*

Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-21 Thread Pete Robbins
Hi, thanks for looking at this. Some comments inline: On 21/11/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: There's a way of using std::string in Tuscany which might allocate/release heap and copy memoery too frequently. Could you please verify that's the case and brainstorm an optimization? std:

Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-21 Thread Yang ZHONG
There's a way of using std::string in Tuscany which might allocate/release heap and copy memoery too frequently. Could you please verify that's the case and brainstorm an optimization? std::string is just an example, using object vs. using &/* is the more generic topic. This's the code snippet:

Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-21 Thread Yang ZHONG
http://issues.apache.org/jira/browse/TUSCANY-563 Thanks. On 11/21/06, Pete Robbins <[EMAIL PROTECTED]> wrote: On 21/11/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: > > Thanks a lot to Pete and Geoff. > Here's an optimization incorporated with their feedback: > > > SDOString& DataFactoryImpl::get

Re: Use std::string as an example to discuss object vs. &/* to reduce heap allocation/release and memory copying

2006-11-21 Thread Pete Robbins
On 21/11/06, Yang ZHONG <[EMAIL PROTECTED]> wrote: Thanks a lot to Pete and Geoff. Here's an optimization incorporated with their feedback: SDOString& DataFactoryImpl::getFullTypeName(SDOString& stringBuffer, const char* uri, const char* inTypeName) const //TODO: getFullTypeName is private, ch