Re: progress

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Finn J Johnsen (finn_at_OSLO.no)
Date: 04/21/04


Date: Wed, 21 Apr 2004 13:40:37 +0200

Sparky wrote:

> Of course you can do a Microsoft approach and write an exponential "false"
> progress bar... like in IE - initially it whizzes along, but gets slower and
> slower. Ok, well I'm half-kidding.

Well. it is better to show that your system has a pulse, than just a "hang".

> I had a similar issue myself - I couldn't see a way to pass progress events
> back with webservice. So I write a simple routine to pass chunks of the
> file - say 1024 bytes each time. Then the client knows exactly where it is.
> And actually then you can zip up your file beforehand which will greatly
> decrease your upload time.
>
> hope that helps :-)

The thought of chopping it up has crossed my mind, and I just might go
for it. Just split it to staically 100 chunks will do.

I am compressing the XML. bzip2. In one test i did it reduced the size
of the XML from 36MB to 500k. So I see no other way than compressing
when stuck with ISDN.

One other way i though of, was to refer to the xmldata as a file. And
just sending the reference to an URL to the client. There are lots of
components with events that give progress while downloading stuff. But
the way you suggested here, gives more control though.

Thanks....

Finn



Relevant Pages

  • Re: Inverse of stream parser
    ... I can divide the stream into logical chunks which can be ... To do this, I want to be able to regenerate the XML of the failed chunk, ... We also had the advantage that if the /whole/ XML document was not well-formed we didn't lose the fragments. ...
    (comp.lang.ruby)
  • Re: Why do you use XML?
    ... And XML is easier to read ... One thing that I find myself doing occasionally is compressing the XML   ... Of course, you can do this with any data format, and text formats respond   ... the computer industry has this habit of hyping whatever the   ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 10GB XML Blows out Memory, Suggestions?
    ... I have no control over the XML ... The file is from Goldmine. ... Is it possible to read an XML document in compressed format? ... I tried compressing my 1 GB example, but all 1000-byte records in that file are identical, so I got a 500x compression, which is a bit higher than you can reasonably expect;-) however, with that example, I get a stable parsing time of 26 seconds, so it looks as if gzip can produce data about as fast as a preloaded disk cache... ...
    (comp.lang.python)
  • Re: LINQ to XML on Large File?
    ... Is there a way to use a disk-based XmlTextReader to read the document ... in "chunks" that I can pass to LINQTOXML for query and processing? ... Yes, LINQ to XML has support for that, use an XmlReader to read through and when you have a node you want to pass to LINQ to XML use ReadFrom ...
    (microsoft.public.dotnet.xml)