bazaar web interface
John Arbash Meinel
john at arbash-meinel.com
Thu Jan 5 00:18:34 GMT 2006
Martin Pool wrote:
> On Wed, 2006-01-04 at 17:52 -0600, John Arbash Meinel wrote:
>
>>Goffredo Baroncelli wrote:
>
>
>>>Yes: the code doesn't access to the working dir, so if the files exist or not
>>>shouldn't matter.
>>>
>>>For example, after your email I removed the file from the working dir of the
>>>repository located at http://goffredo-baroncelli.homelinux.net/bazaar/bzr-fileid-involved :
>>>but you can browse the log/inventory/content/diff without problem...
>
>
> Very nice!
>
>
>>The only problem being bandwith, since each line is prefixed with:
>><tr class="parity0"><td class="annotate"><a
>>title="ghigo at therra.bhome-20051101184844-78e20f6fdc4d9dae"
>>href="?cmd=revision;rev=ghigo at therra.bhome-20051101184844-78e20f6fdc4d9dae">55</a>:<a
>>title="ghigo at therra.bhome-20051101184844-78e20f6fdc4d9dae"
>>href="?cmd=revision;rev=ghigo at therra.bhome-20051101184844-78e20f6fdc4d9dae">ghigo@t</a></td><td><pre></pre></td></tr>
>>
>>I wonder if there would be a way to do that more cleanly. Maybe with
>>javascript which rewrites the document. Or maybe just expect people do
>>have mod_gzip enabled :)
>
>
> It's fairly easy to do compression within the server or cgi. The rules
> are, approximately (robert can correct me :) that if the client sends
> Accept-Encoding containing "gzip", then gzip the output and send with
> "Content-Transfer-Encoding: gzip".
>
> I added http://bazaar.canonical.com/WebInterface
Here are some interesting statistics, though, about the per-line
annotations.
For this file:
http://goffredo-baroncelli.homelinux.net/bazaar/hgweb_devel?cmd=content;rev=ghigo@therra.bhome-20060104222604-bb16793970cb0fbe;pathrevid=ghigo@therra.bhome-20060104230125-d355a583982aee0a;path=webserve/README.txt
The raw README.txt is 11925 bytes.
The html is 172855 bytes. (Yes 172kb)
If all I do is change:
<a aoeuaoeu>55</a>:<a aoeuaoeu>ghigo@</a>
to
<a aoeuaoeu>55:ghigo@</a>
It drops to 1009943 bytes.
That is cutting it almost in half. Without doing any compression. Though
I agree, adding compression should help a lot, since each line is
frequently the same content as the previous one.
After gzip, I have:
8343 hgweb_devel.html.gz
7315 test.html.gz
So down from 170k to 7-8k. It would definitely be worth implementing. I
think Goffredo would appreciate a 24x decrease in bandwidth consumption.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060104/ca1889c2/attachment.pgp
More information about the bazaar
mailing list