C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Serialization and data compression methods

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Alex Vinokur
Guest





PostPosted: Sat Dec 18, 2004 2:50 pm    Post subject: Serialization and data compression methods Reply with quote



Are data compression methods used as the serialization technique?

--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn



Back to top
Rolf Magnus
Guest





PostPosted: Sat Dec 18, 2004 2:55 pm    Post subject: Re: Serialization and data compression methods Reply with quote



Alex Vinokur wrote:

Quote:
Are data compression methods used as the serialization technique?

of what?


Back to top
Alex Vinokur
Guest





PostPosted: Sat Dec 18, 2004 3:09 pm    Post subject: Re: Serialization and data compression methods Reply with quote




"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote

Quote:
Alex Vinokur wrote:

Are data compression methods used as the serialization technique?

of what?


To transmit objects we should put them on a disk.
To do that it seems that we should encode them.

--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn




Back to top
Bob Hairgrove
Guest





PostPosted: Sat Dec 18, 2004 8:00 pm    Post subject: Re: Serialization and data compression methods Reply with quote

On Sat, 18 Dec 2004 16:50:31 +0200, "Alex Vinokur"
<alexvn (AT) big-foot (DOT) com> wrote:

Quote:
Are data compression methods used as the serialization technique?

There is no "the serialization technique" ... there are many ways of
implementing serialization. There are also many methods of data
compression.

What is it exactly that you want to do? And what does it have to do
with the C++ language?

--
Bob Hairgrove
[email]NoSpamPlease (AT) Home (DOT) com[/email]

Back to top
Mike Wahler
Guest





PostPosted: Sat Dec 18, 2004 10:48 pm    Post subject: Re: Serialization and data compression methods Reply with quote


"Alex Vinokur" <alexvn (AT) big-foot (DOT) com> wrote

Quote:
Are data compression methods used as the serialization technique?

They are used as one possible serialization method
by some applications, those that need it. Other
applications use some other technique, depending
upon their needs. E.g. If I serialize some text
for purposes of transmitting to a printer, I certainly
don't want to compress or 'encrypt' it.

This isn't really a C++ question, but a design question,
perhaps better addressed in e.g. comp.programming

-Mike



Back to top
Mike Wahler
Guest





PostPosted: Sat Dec 18, 2004 10:49 pm    Post subject: Re: Serialization and data compression methods Reply with quote


"Alex Vinokur" <alexvn (AT) big-foot (DOT) com> wrote

Quote:

"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote

Alex Vinokur wrote:

Are data compression methods used as the serialization technique?

of what?


To transmit objects we should put them on a disk.

Really? What about e.g. transmitting them over a network?
To an output device?

Quote:
To do that it seems that we should encode them.

Why?

-Mike



Back to top
Thomas Matthews
Guest





PostPosted: Sun Dec 19, 2004 2:41 am    Post subject: Re: Serialization and data compression methods Reply with quote

Alex Vinokur wrote:
Quote:
Are data compression methods used as the serialization technique?


Yes and no.
When data objects are big, or transmission time is costly, then
data compression is applied. When 1200 Baud modems were the norm,
everything was compressed to save transmission time.

It is a time-memory trade off. You are trading memory size for
compress and uncompress time. Only you and the users of your
application can judge which is more important.


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library


Back to top
Thomas Matthews
Guest





PostPosted: Sun Dec 19, 2004 2:42 am    Post subject: Re: Serialization and data compression methods Reply with quote

Alex Vinokur wrote:
Quote:
"Rolf Magnus" <ramagnus (AT) t-online (DOT) de> wrote


Alex Vinokur wrote:


Are data compression methods used as the serialization technique?

of what?



To transmit objects we should put them on a disk.
To do that it seems that we should encode them.


You only need to encode data if the data is sensitive
and should only be seen by certain eyes. See also
"cryptography."

Many applications have been writing objects to the
disk, tape, punched tape, etc., for many decades
without encoding them.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library


Back to top
Jeff Flinn
Guest





PostPosted: Mon Dec 20, 2004 1:50 pm    Post subject: Re: Serialization and data compression methods Reply with quote

Alex Vinokur wrote:
Quote:
Are data compression methods used as the serialization technique

Not 'as' but 'with'. See the boost.serialization library and the upcoming
boost.iostream library by Jonathan Turkanis. The serialization library is
independent of stream type, and the iostream library provides the ability to
easily create compressed streams.

Jeff Flinn



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.