473,320 Members | 1,580 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,320 software developers and data experts.

Serialization and data compression methods

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

Jul 22 '05 #1
8 2839
Alex Vinokur wrote:
Are data compression methods used as the serialization technique?


of what?

Jul 22 '05 #2

"Rolf Magnus" <ra******@t-online.de> wrote in message news:cq*************@news.t-online.com...
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

Jul 22 '05 #3
On Sat, 18 Dec 2004 16:50:31 +0200, "Alex Vinokur"
<al****@big-foot.com> wrote:
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
No**********@Home.com
Jul 22 '05 #4

"Alex Vinokur" <al****@big-foot.com> wrote in message
news:32*************@individual.net...
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
Jul 22 '05 #5

"Alex Vinokur" <al****@big-foot.com> wrote in message
news:32*************@individual.net...

"Rolf Magnus" <ra******@t-online.de> wrote in message news:cq*************@news.t-online.com...
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?
To do that it seems that we should encode them.


Why?

-Mike
Jul 22 '05 #6
Alex Vinokur wrote:
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

Jul 22 '05 #7
Alex Vinokur wrote:
"Rolf Magnus" <ra******@t-online.de> wrote in message news:cq*************@news.t-online.com...
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

Jul 22 '05 #8
Alex Vinokur wrote:
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
Jul 22 '05 #9

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

Similar topics

1
by: Phil Price | last post by:
Hi there, I'm developing a shape recognition application for the tablet PC for a) fun b) university project. Currently I'm working on the learning stage using neural networks, and have to store...
0
by: Markus Minichmayr | last post by:
Hello! I already posted this issue on the remoting NG, but didn't get an answer, so I try it here. I have a client/server app., that communicates via .NET remoting and I need to transport...
2
by: reycri | last post by:
I have a .Net class (a collection) that already supports serialization. It implements ISerializable... Now, I need it to also support the COM interface IPersistStream. Among other things, I need...
4
by: Jeff T. | last post by:
Hello, I have an existing set of C# classes that encapsulate our application data. They are in a heirachy with each subclass defining more specific types of data. I would like to serialize these...
1
by: Eric Porter | last post by:
Help! Below is some code for a Web Service which has two methods, First() and Second(). However, when the code is run, whichever of the two methods appears second in the source fails with...
1
by: Matt | last post by:
I have a web service that currently returns a dataset. Depending on the data being returned its size will be in megabytes (XML Document could be possibly 100 or more megabytes). To speed up the...
3
by: GreyAlien007 | last post by:
I extended the class TreeNode to add some properties of my liking. Anyway, no problems there, I can add my derived TreeNode into TreeNodeCollections and use the properties etc. However, when I...
2
by: Peter Duniho | last post by:
I've been learning about mechanisms .NET offers to export data. The initial goal is to see what sorts of ways are available to save an application's state (document, internal database, whatever). ...
0
by: JosAH | last post by:
Introduction Upon hearing the word, "Serialization", the first question which comes to mind is ... "What is Serialization?" We know that we can create resusable objects in Java. But the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.