This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[3.3 feature request] WebUI. Divide torrents list and status

Tags: None
(comma "," separated)
Lain_13
Registered Member
Posts
103
Karma
0
On this moment on each refresh kTorrent WebUI downloads complete torrents list with all names and other stats. But this method eats a lot of traffic and works really slow on slow connections.

I propose to do next:
1. Download complete list of torrents with constant indexes (e.g. constant for current session, doesn't matter) but without details.
2. Download details with same indexes (now we can show both parts).
3. Put downloading of details into loop and update details columns without updating of names. Names is constant and eats a lot of space. There is no reasons to load them again and again.
4. If some torrent was removed -- we get details list without this torrent and now we can automatically remove info about this torrent from list of names. So, we still don't need to download complete list of names. We even can just ignore names without pair in details list and do not bother about them.
5. If some torrent was added -- we get details list with new index. In this and only this case we should reload names list.

This method will be great for complete torrents list and details page of any torrent.


What isn`t remembered never happened. Memory is merely a record. You just need to rewrite that record.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft