[Y-devel] Compression..

Dave Mears david.mears at cox.net
Mon Feb 23 00:30:59 GMT 2004


you should only bother with compression at all when connected to a 
remote client, and when you do, there should almost certainly have an 
"accepts" type negotiation for content encoding.  Locally you'd be 
compressing and decompressing on one system, which would kill 
performance.  In particular, with multimedia presentations to remote 
sessions, you would ideally want to send the compressed stream itself 
and let the part that's hooked up to the monitor worry about decoding 
the stream.  Likewise, when you send large streams of raw text or some 
other highly compressible data type, offering the gzip encoding would be 
nice for remote connections, it saves a lot with http.  The server could 
"Offers: " the decoding piece as a module, which would be better cached, 
and should specify architecture.. ie "Y1.0:x86-32-linux-2.6" the client 
would accept based on if it can handle the module and if it trusts the 
server.  That would make real time video playback possible, having 
multiple audio/video players a serviceable idea..  if it can't use the 
module, best effort compression into a jpeg or mpeg stream would 
probably be ideal at the moment...  It should be negotiated and 
configurable.  This approach almost requires the sound server to be 
integrated into the video server, though.  The module should have very 
specific and limited privileges so it can't execute anything besides 
exposed Y-server operations and parts of it's own code.  It also means 
people wouldn't be stuck with whatever encoding method we choose and it 
would work across architecture, since it could expose methods for 
multiple operating systems/architecture, or just one, and it would still 
have a useful secondary method to fall back on.





More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved