ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SET vs. CREATE when creating XML structure

Post new topic  Reply to topic
 SET vs. CREATE when creating XML structure « View previous topic :: View next topic » 
Author Message
Maximreality
PostPosted: Tue May 31, 2005 2:11 am    Post subject: SET vs. CREATE when creating XML structure Reply with quote

Acolyte

Joined: 04 Jun 2004
Posts: 65
Location: Copenhagen

CREATE LASTCHILD OF XMLref NAME 'XMLTagName' VALUE 'SomeValue';
CREATE LASTCHILD OF XMLref NAME 'AnotherXMLTagName' VALUE 'AnotherValue';

SET XMLref.XMLTagName = 'SomeValue';
SET XMLref.AnotherXMLTagName = 'AnotherValue';

Taking performance in mind, which is better? (or does it result in the same calls behind the scenes?)

I am not interested in opinions, only facts!
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Wed Jun 01, 2005 4:00 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

I just did a performance test on a windows P4 machine using the two sets of statements in a large loop. From the usertrace I was able to get some numbers:
The Create statement is better than the SET .

I have no reasons for why it is so, but you wanted facts and here they are:
Time for the Create statements in a loop of 768 times = 0.344 sec
Time for the SET statements in a loop of 768 times = 0.3910014 sec

I am not sure if this was a correct way to check the performance nos but if someone has better ideas then please advise.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Bill.Matthews
PostPosted: Fri Jun 03, 2005 1:05 pm    Post subject: Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

The reason Create is faster is due to the Reference Pointer - it keeps track of where you are in the messsage tree. A Set has to find the right location. The larger the tree, the larger the difference. I did some tests some time ago with a 64,000 element tree and had an even larger difference.

Cheers
_________________
Bill Matthews
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SET vs. CREATE when creating XML structure
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.