[Vorbis-dev] Large Packets and page size...
illiminable
ogg at illiminable.com
Thu Sep 23 04:04:24 PDT 2004
I'm just wondering about some guidelines on page size... For example if you
have a stream where all packets are consistently of size > 40,000 bytes (but
less than 65000), is it appropriate to just put them 1 per page ie have
large pages.
Packets in this range incur the page overhead about 10 times each... and
most of the pages have no useful information.
What are the pro's and cons of 10x 4k pages per packet (~1.5% overhead) vs
1x 40k page per packet (~0.5% overhead)
As for pro's i can think of...
Less buffer manipulation reconstructing packets.
Less overhead
Less seek misses.
Cons
Page buffer needs to be large... (but if it's a issue of memory... it still
needs to allocate that quantity for the packet) and in theory it should eb
able to handle the maximum size page anyway.
Anything else ?
Why the recommendation of 4k pages... it makes sense in terms of small
packets... but does this justification for this recommendation still hold
when packets are very large.
Cheers,
Zen.
More information about the Vorbis-dev
mailing list