Hi Gilou,

Thanks for investigating more. I wonder what it could be. If you're
using a regular playlist (not playlist.safe) then the files are not
checked in advance, so really the only thing that changes with the
size of the playlist is parsing time. What you said is consistent with
this: you have the same problem with a smaller playlist. After that
point, one possible source of slowdown is if a file takes forever to
check before loading into the queue. Perhaps can you identify
problematic files and see how long "liquidsoap -r <file>" takes on it.

Good luck,

David

On Tue, Jun 18, 2013 at 9:01 PM, Gilou <[email protected]> wrote:
> Le 18/06/2013 10:24, Gilou a écrit :
>> Le 18/06/2013 08:43, David Baelde a écrit :
>>> Hi Gilou,
>>>
>>> What kind of playlist format are you using? I just tested with a 10k
>>> playlist and it worked reasonably:
>>
>> Normal playlist, but it seems I'm hitting another bug.. I restricted all
>> the list to 500 elements, but after some time (between 1 and 6 hour),
>> liq start using all my CPU again.. So I need to do some more investigation..
>>
>> I'm running 1.1.1, on a .m3u (text, really) playlist made of .mp3s &
>> .m4a.. my next step is to use only .mp3 and see how that goes..
>
> Yeah.. I think the issue is more related to some kind of files than the
> playlist size in the end.. I restricted to .mp3, and it seems steady.
> Still investigating. .m4a / AAC seems to be guilty.. Anything bad to
> know about those files on liquidsoap ?
>
> Cheers,
> Gilles
>
>>
>> Cheers
>> Gilles
>>>
>>> $ time liquidsoap
>>> 'print(string_of(list.nth(playlist.parse("~/tmp/10k.txt"),0)))'
>>>
>>> It also works well when just doing out(playlist("~/tmp/10k.txt")). I'm
>>> using the same file on each line, but I don't think that it triggers
>>> any optimization.
>>>
>>> That being said, the code can certainly be optimized. I could easily
>>> do it if it's about the basic playlist parser -- for more structures
>>> formats, it might be more difficult and even impossible when we use an
>>> external lib.
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> On Tue, Jun 18, 2013 at 3:24 AM, Gilou <[email protected]> wrote:
>>>> Hi,
>>>>
>>>> Is there a file number limit on playlist() ? I tried to do it on a 2000+
>>>> list, and it choke on it, using 100% CPU. It was still streaming the
>>>> fallback though, good job on that hehe..
>>>>
>>>> Anyway, it seems limiting to <2000 works.. But maybe that's a bug.. Or
>>>> maybe we are just not supposed to have playlists that big...
>>>>
>>>> Cheers
>>>>
>>>> Gilou
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net email is sponsored by Windows:
>>>>
>>>> Build for Windows Store.
>>>>
>>>> http://p.sf.net/sfu/windows-dev2dev
>>>> _______________________________________________
>>>> Savonet-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users



-- 
David

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to