473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Big Endian

Dear All !!

I am not sure the question which I am asking is correct or wrong, but
I have heard that storing the data into the big endian helps in
gting the more transfer rate, Means we can achive good speed by
soring the data in the BIG ENDIAN while transferring, If this is
correct, then how it is possible and what is the reason behind this.

Any pointers on above will be helpful, (if My question sounds correct)

Regards
Ranjeet

Nov 15 '05 #1
3 1826
In article <11*********************@g14g2000cwa.googlegroups. com>,
<ra***********@gmail.com> wrote:
I am not sure the question which I am asking is correct or wrong, but
I have heard that storing the data into the big endian helps in
gting the more transfer rate, Means we can achive good speed by
soring the data in the BIG ENDIAN while transferring, If this is
correct, then how it is possible and what is the reason behind this.


Unless perhaps there is some data compression equipment inline
that uses poor algorithms, there should be pretty much no
measurable transmission speed difference for big endian or
little endian data.

However, big endian is the standard "network byte order", so
if you are trying to transfer numeric fields and you are
on a little-endian machine, there is less preperation work
to be done if you are starting from data that is internally
stored as big endian. This would, though, not make any noticable
difference to data tranmission speeds unless your processor
is having trouble keeping up with the network bandwidth
(which would normally only happen with either a very fast and
short link, or else a very slow processor.)

In most cases, the procssor speed is sufficient to keep the
network busy either way. Even with very fast links, the
limitation is usually not the processor speed but rather the
bandwidth of the bus to the network card.
There is one other situation where the transmission endianess can
make a difference: if you are transmitting in the opposite
endianness than the reciever needs, and the receiving application
is having a hard time keeping up with decoding the tranmissions,
then putting the data into the receiver's native format could
-potentially- reduce the load on the receiver by enough to make a
difference in whether the recieving machine's buffers fill up
and hence whether the receiving machine drops packets. If you
are in such a situation, you are in a very fragile situation
and random events unrelated to your processing could lead to
massive performance problems for you.
--
This signature intentionally left... Oh, darn!
Nov 15 '05 #2
In article <dc**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.ca> wrote:
In article <11*********************@g14g2000cwa.googlegroups. com>,
<ra***********@gmail.com> wrote:
I am not sure the question which I am asking is correct or wrong, but
I have heard that storing the data into the big endian helps in
gting the more transfer rate, Means we can achive good speed by
soring the data in the BIG ENDIAN while transferring, If this is
correct, then how it is possible and what is the reason behind this.


Unless perhaps there is some data compression equipment inline
that uses poor algorithms, there should be pretty much no
measurable transmission speed difference for big endian or
little endian data.


Please don't feed the trolls.

Nov 15 '05 #3

Kenny McCormack wrote:
In article <dc**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.ca> wrote:
In article <11*********************@g14g2000cwa.googlegroups. com>,
<ra***********@gmail.com> wrote:
I am not sure the question which I am asking is correct or wrong, but
I have heard that storing the data into the big endian helps in
gting the more transfer rate, Means we can achive good speed by
soring the data in the BIG ENDIAN while transferring, If this is
correct, then how it is possible and what is the reason behind this.


Unless perhaps there is some data compression equipment inline
that uses poor algorithms, there should be pretty much no
measurable transmission speed difference for big endian or
little endian data.


Please don't feed the trolls.


so it means you are upset . why so ?? seems to me that you have the
hang over to troll others, This is what I can see in your previous
and present mail.

Not everything that can be counted counts, and not everything that
counts can be counted. - Albert Einstein

Just think Kenny McCormack (Penny Micro Mick)

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joe C | last post by:
I have some code that performs bitwise operations on files. I'm trying to make the code portable on different endian systems. This is not work/school related...just trying to learn/understand. ...
8
by: Perception | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
14
by: ThazKool | last post by:
I want to see if this code works the way it should on a Big-Endian system. Also if anyone has any ideas on how determine this at compile-time so that I use the right decoding or encoding...
2
by: bhatia | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
33
by: raghu | last post by:
Is it possible to know whether a system is little endian or big endian by writing a C program? If so, can anyone please give me the idea to approach... Thanks a ton. Regards, Raghu
8
by: ma740988 | last post by:
Data stored on a storage device is byte swapped. The data is big endian and my PC is little. At issue: There's a composite type ( a header ) at the front of the files that I'm trying to read in....
3
RRick
by: RRick | last post by:
This was a question that showed up in a job interview once. (And to answer your next question: No, I didn't :)) Write a subroutine that returns a bool on whether a system supports big endian...
6
by: Javier | last post by:
Hello people, I'm recoding a library that made a few months ago, and now that I'm reading what I wrote I have some questions. My program reads black and white images from a bitmap (BMP 24bpp...
23
by: guthena | last post by:
Write a small C program to determine whether a machine's type is little-endian or big-endian.
23
by: Niranjan | last post by:
I have this program : void main() { int i=1; if((*(char*)&i)==1) printf("The machine is little endian."); else printf("The machine is big endian."); }
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.