[mythtv] 0.28 MythVideo: slow loading

Jean-Yves Avenard jyavenard at gmail.com
Sun Jan 31 09:44:42 UTC 2016


On 31 January 2016 at 11:22, Angela <angela.schmid at wolke7.net> wrote:

> Yes I am sure.
>
>
>
> To cross-check: Reset to HEAD and changed:
>
> /mythtv/libs/libmythbase/mythmiscutil.cpp
>
> @@ -1038,6 +1038,8 @@ int naturalCompare(const QString &_a, const QString
> &_b, Qt::CaseSensitivity cas
>
>      QString a;
>
>      QString b;
>
>
>
> +return 1;
>
> +
>
>      if (caseSensitivity == Qt::CaseSensitive)
>

Are you doing this on the backend or the frontend?

Doing return 1 like you mentioned, Saves 2s over the runtime without it.

However, more importantly,
doing return _a < _b (as we do want to sort the entries obviously),
leads to almost no noticeable difference.
Like timing it about a dozen time where I used to see a time of 10-11,
i see a time of like 9.6-10.8

So nothing of significance...

I don't believe it's a natural sort as such, the sort itself takes a
bit of time, but again, nothing worth improving.


More information about the mythtv-dev mailing list