473,651 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1838
In article <11************ *********@g14g2 000cwa.googlegr oups.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**********@c anopus.cc.umani toba.ca>,
Walter Roberson <ro******@ibd.n rc-cnrc.gc.ca> wrote:
In article <11************ *********@g14g2 000cwa.googlegr oups.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**********@c anopus.cc.umani toba.ca>,
Walter Roberson <ro******@ibd.n rc-cnrc.gc.ca> wrote:
In article <11************ *********@g14g2 000cwa.googlegr oups.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
4662
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. My computer is little endian 32-bit (intel, imagine that). My code deals with binary data in files, and I've been treating all data as native words (32-bit) for performance reasons. I found out that if I treat the data as long long (64-bit) I...
8
27453
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
2851
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 functions, I would greatly appreciate the help. Thanks, Ché #include <iostream>
2
6543
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
3215
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
5321
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. I'm trying to _simulate_ the endian conversion in code below but I'm just wondering if there's an ideal way to do this besides what's shown? Padding produces some interesting results. Notice how the parameter d is different in the print outs...
3
2624
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 numbers (true) or little endian (false). I tried something like the following, but never did find out if it was correct. There are two assumptions here: First, big endian direction from small to large is ordered like a string. Second, endian is...
6
3172
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 without compression). It has it's words and dwords stored in little- endian, so I do a conversion to big-endian when reading full words or dwords. I have done this because my system is big-endian. But now... what if one compiles the library in a...
23
14171
by: guthena | last post by:
Write a small C program to determine whether a machine's type is little-endian or big-endian.
23
7034
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
8277
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8803
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8581
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.