[ANN] "Pure" Ogg-Vorbis decoder

Russell Penney russell.penney at tincanct.com
Mon Jun 14 08:27:09 UTC 2004


Unfortunately I have to create lots of Floats. There are a lot of
intermediate objects while decode the bitstream. Hmmm having just thought
about that I will do some investigation on FloatArrays.
I am looking at Tremor which is the integer only decoder but I would have to
do a LOT of work :(

Thanks!

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
> bounces at lists.squeakfoundation.org] On Behalf Of Bryce Kampjes
> Sent: Sunday, 13 June 2004 2:21 AM
> To: The general-purpose Squeak developers list
> Subject: RE: [ANN] "Pure" Ogg-Vorbis decoder
> 
> Russell Penney writes:
>  > Oh yes it would indeed!!!!
>  > During the decode of the packet, lots of work is done on arrays of
> floats.
>  > Without changing the decoder to integer only, everything is stored in
> floats
>  > until the last step.
> 
> If you use FloatArrays, then floating point arithmetic is likely
> to be the same speed as integer arithmetic. Modern CPUs have a
> lot of floating point hardware. The only reason to use integer
> arithmetic would be for PDAs.
> 
> Just avoid creating Float objects, they are full objects unlike
> SmallIntegers.
> 
> Bryce






More information about the Squeak-dev mailing list