Re: Fixed vs. Variable
Obviously fixed wins out on processing time vs variable when the equiptment is substandard. Variable wins out in the bandwidth arena when you client is cheap and doesn't pour money into the network infrastructure. BUT if you are sending the, ALMOST, same message in variable with very little change. Think Fixed. A true ariable message example would be a SWIFT message. Where fields (TAGS) appear depending on the content of a field. But if you are sending variable data because the last element in a message is variable by +/- 100 characters you might want to consider fixed with a length modifier preceeding the last field. Again as everyone has been either implying or specifically pointing out. IT is yoou choise because you are the one behind the wheel and the oncoming turck is geting closer!!! bobbee From: "Williams, Dave (Systems Management)" <[EMAIL PROTECTED]> Reply-To: MQSeries List <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Fixed vs. Variable Date: Mon, 28 Jul 2003 10:35:28 -0400 A quick question - as a rule, is it significantly more efficient to specify variable messages as opposed to fixed - in one app, even though we are moving variable length messages, we're specifying fixed. Just looking for some quick opinions. Thanks in advance, DW _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: Fixed vs. Variable
I think it is a matter of opinion from an applications perspective. If you are referring to MQ specifically, it shouldn't matter. Chris -Original Message-From: Roger Lacroix [mailto:[EMAIL PROTECTED]Sent: Monday, July 28, 2003 1:11 PMTo: [EMAIL PROTECTED]Subject: Re: Fixed vs. VariableHi,The fixed vs variable debate really has more to done with how each application is constructed and the type of data. Some types of data just cannot be used as delimited data (i.e. binary, or where the delimiter is part of the data).Here's how I see things:(1) Fixed format data: means that the sender has more work to done than the receiver. (i.e. padding fields with blanks or zero, aligning the data within the field, etc...(2) Variable length data means that you will need a delimiter to separate the "records". Therefore, lets just call it "delimited data". Generally speaking, it is easier for the sender to construct the delimited data, where as the receiver will be required to parse / tokenize the incoming data and separate the data into its respective fields.Because fixed formatted data has padding characters, it is generally longer than if you had made the data variable format.Hope that helps.Regards,Roger LacroixEnterprise ArchitectCapitalware Inc.At 10:35 AM 7/28/2003, you wrote: A quick question as a rule, is it significantly more efficient to specify variable messages as opposed to fixed in one app, even though we are moving variable length messages, were specifying fixed. Just looking for some quick opinions. Thanks in advance, DW *The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer.**The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer.*
Re: Fixed vs. Variable
Hi, The fixed vs variable debate really has more to done with how each application is constructed and the type of data. Some types of data just cannot be used as delimited data (i.e. binary, or where the delimiter is part of the data). Here's how I see things: (1) Fixed format data: means that the sender has more work to done than the receiver. (i.e. padding fields with blanks or zero, aligning the data within the field, etc... (2) Variable length data means that you will need a delimiter to separate the "records". Therefore, lets just call it "delimited data". Generally speaking, it is easier for the sender to construct the delimited data, where as the receiver will be required to parse / tokenize the incoming data and separate the data into its respective fields. Because fixed formatted data has padding characters, it is generally longer than if you had made the data variable format. Hope that helps. Regards, Roger Lacroix Enterprise Architect Capitalware Inc. At 10:35 AM 7/28/2003, you wrote: A quick question as a rule, is it significantly more efficient to specify variable messages as opposed to fixed in one app, even though we are moving variable length messages, were specifying fixed. Just looking for some quick opinions. Thanks in advance, DW
Re: Fixed vs. Variable
Hello Dave, As usual, it depends... However, here is my rule of thumb that should work unless you program for handheld computers or other consumer electronics :-): 1. Always use fixed length buffer (one for the whole program), with the size 1Mb. 2. Check for truncation error and allocate and then deallocate separate buffers for bigger messages, as needed. Allocation/deallocation time must not be too high comparing with other processing when you deal with such monsters. On a side note, nicely and slowly pursue application protocols to make them avoid longer messages -- in the long term :-). But always check for the truncation error, anyway. IMHO, as usual, Pavel "Williams, Dave (Systems To: [EMAIL PROTECTED] Management)" cc: <[EMAIL PROTECTED] Subject: Fixed vs. Variable OM> Sent by: MQSeries List <[EMAIL PROTECTED] n.AC.AT> 07/28/2003 10:35 AM Please respond to MQSeries List A quick question ? as a rule, is it significantly more efficient to specify variable messages as opposed to fixed ? in one app, even though we are moving variable length messages, we're specifying fixed. Just looking for some quick opinions. Thanks in advance, DW -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: Fixed vs. Variable
Significantly efficient for who? Chris -Original Message-From: Williams, Dave (Systems Management) [mailto:[EMAIL PROTECTED]Sent: Monday, July 28, 2003 10:35 AMTo: [EMAIL PROTECTED]Subject: Fixed vs. Variable A quick question – as a rule, is it significantly more efficient to specify variable messages as opposed to fixed – in one app, even though we are moving variable length messages, we’re specifying fixed. Just looking for some quick opinions. Thanks in advance, DW *The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer.*
Fixed vs. Variable
A quick question – as a rule, is it significantly more efficient to specify variable messages as opposed to fixed – in one app, even though we are moving variable length messages, we’re specifying fixed. Just looking for some quick opinions. Thanks in advance, DW