mrw wrote: 
> This may be some kind of answer if unsigned 64 bit integers are
> available, and don't kill performance:
Perhap changing the lua default integer type to 64bit by changing
LUA_NUMBER_MODE to 22 making the lua integer type a long long. 
https://github.com/Logitech/squeezeplay/blob/public/7.8/src/lua-5.1.1/src/luaconf.h#L24
Need to confirm the LUAI_BITSINT definitions as well.  I confirmed that
a long long is 8 bytes on the radio.  This could have a negative impact
on available memory in the radio.

mrw wrote: 
> Redefine -jive_jiffies- to be -Uint64- instead of -Uint32-. 
> https://github.com/Logitech/squeezeplay/blob/7.8/src/squeezeplay_baby/src/common.h#L65
> Systems that use -SDL_GetTicks()- won't get much benefit, because that's
> only 32 bit unsigned milliseconds anyway. But systems that use
> -clock_gettime- could gain.
> 
> Fix up -jiveL_get_ticks- to push appropriate unsigned value.
> https://github.com/Logitech/squeezeplay/blob/public/7.8/src/squeezeplay/src/ui/jive_framework.c#L967
> The lua number type in use on SqueezePlay is, I believe, a double float,
> with 53 bits ? of integer precision, not 64, but that might be ok. It
> ought to give us about 300,000 years instead of 24 days. It is a compile
> time option.[/url]

SDL_GetTicks is called directly only in jiveblit.c which is easy to fix
but jive_jiffies is used a lot and in many cases expected to be only
32bits.

I would think using a double to have a bigger performance impact on the
radio than a 64bit int since it uses emulated floating point.  Need to
try it to be sure.  If changing LUA_NUMBER_MODE doesn't work.

I'll have a stab at trying these changes on a 32bit intel linux system
to see how far I can get.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111663

_______________________________________________
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio

Reply via email to