https://bugzilla.wikimedia.org/show_bug.cgi?id=21195

Andrew Dunbar <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Andrew Dunbar <[email protected]> ---
The easiest way to include a value in a file that isn't known until after the
file is created is to include a null field with enough space. We know a 64-bit
unsigned int needs a maximum of 20 ASCII characters so anything like these:

<foo key1="val1" length="00000000000000000000" key3="val3">bar</foo>

<foo key1="val1"                               key3="val3">bar</foo>

Is easy to output on the first pass then go back and fill in the field when we
know its value.

Downloading another huge file, decompressed it, and scanning through it is very
inefficient in comparison. It would mean one slow pass just to pre-calculate
the maximum value to use on a progress bar whose function was to give you an
idea how long a slow pass was going to take. And we won't be able to have a
progress bar on the new prior slow pass (-:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to