Hi Gilou,
What kind of playlist format are you using? I just tested with a 10k
playlist and it worked reasonably:
$ 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
--
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