HighTechTalks DotNet Forums  

Very unefficient binary stream

Dotnet Framework microsoft.public.dotnet.framework


Discuss Very unefficient binary stream in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jaakko Salmenius
 
Posts: n/a

Default Very unefficient binary stream - 10-30-2007 , 11:08 AM






Hi,

..NET 1.x uses very unefficient way to store binary data to a resource stream
(e.g. .resources file). For example when framework stores System.Char or
System.Boolean it actually serializes the whole type and the value. As the
result it takes 20 to 30 bytes to store a single char or boolean value!!!!

VCL has been there 12 years and has always used only two bytes for boolean
and 2-3 to char.

Really amazing engineering from Microsoft!

Lucky for us MS finally learned and fixed this in .NET 2.x where boolean and
char are stored as primary data type (same was as VCL used 12 years ago!).

Why the hell MS took all the main software engineers from Borland 5-7 years
ago it did not utilize their expertize. My guess was that they just wanted
to kill Delphi that was and still is the most productive software
development tool.

Best regards,
Jaakko



Reply With Quote
  #2  
Old   
Andrew Faust
 
Posts: n/a

Default Re: Very unefficient binary stream - 10-30-2007 , 10:03 PM






Go rant on a Borland newsgroup and stop wasting our time. Many of us have
used Delphi extensively and decided that we prefer Visual Studio. Coming to
a .Net newsgroup and complaining about how .Net 1.x serializes data
certainly isn't going to do anything to change out minds.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


"Jaakko Salmenius" <jaakko.salmenius (at) nospam gmail.com> wrote in
message news:u42vGbwGIHA.6044 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Quote:
Hi,

.NET 1.x uses very unefficient way to store binary data to a resource
stream (e.g. .resources file). For example when framework stores
System.Char or System.Boolean it actually serializes the whole type and
the value. As the result it takes 20 to 30 bytes to store a single char
or boolean value!!!!

VCL has been there 12 years and has always used only two bytes for
boolean and 2-3 to char.

Really amazing engineering from Microsoft!

Lucky for us MS finally learned and fixed this in .NET 2.x where boolean
and char are stored as primary data type (same was as VCL used 12 years
ago!).

Why the hell MS took all the main software engineers from Borland 5-7
years ago it did not utilize their expertize. My guess was that they just
wanted to kill Delphi that was and still is the most productive software
development tool.

Best regards,
Jaakko



Reply With Quote
  #3  
Old   
Peter Duniho
 
Posts: n/a

Default Re: Very unefficient binary stream - 10-30-2007 , 10:31 PM



On 2007-10-30 19:03:22 -0700, "Andrew Faust" <andrew (AT) andrewfaust (DOT) com> said:

Quote:
Go rant on a Borland newsgroup and stop wasting our time. Many of us
have used Delphi extensively and decided that we prefer Visual Studio.
Coming to a .Net newsgroup and complaining about how .Net 1.x
serializes data certainly isn't going to do anything to change out
minds.
Please don't feed the trolls.

And yes, Jaakko is an obvious troll.



Reply With Quote
  #4  
Old   
Andrew Faust
 
Posts: n/a

Default Re: Very unefficient binary stream - 10-30-2007 , 10:47 PM



Yeah, I know. It's a bad habit I have. I like to respond to 411 scammers on
occasion too, just for the laugh.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


"Peter Duniho" <NpOeStPeAdM (AT) NnOwSlPiAnMk (DOT) com> wrote

Quote:
On 2007-10-30 19:03:22 -0700, "Andrew Faust" <andrew (AT) andrewfaust (DOT) com
said:

Go rant on a Borland newsgroup and stop wasting our time. Many of us
have used Delphi extensively and decided that we prefer Visual Studio.
Coming to a .Net newsgroup and complaining about how .Net 1.x serializes
data certainly isn't going to do anything to change out minds.

Please don't feed the trolls.

And yes, Jaakko is an obvious troll.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.