home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
optimize listview controls filling in TVSetup - Channel list for groups
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Vasilich" data-source="post: 785629" data-attributes="member: 97516"><p>i know that it won't come into trunk in at least 2 weeks, but still..</p><p>reworked version of the patch with optimizations for almost every channel list in TVSetup: </p><ul> <li data-xf-list-type="ul">Tv/Radio complete channel lists and channel list groups</li> <li data-xf-list-type="ul">Tv/Radio channel mapping lists</li> <li data-xf-list-type="ul">Tv/Radio channel combining lists</li> <li data-xf-list-type="ul">Tv/Radio EPG channel lists</li> <li data-xf-list-type="ul">Combobox with all channels in Manual control</li> </ul><p>Optimization (in my case getting e.g. "All channels" TV group content for 4k5 channels takes now less than 4 seconds instead of 80 in unpatched SetupTV) is done via rewriting of SQL queries and using dictionaries for searching in lists. Another part is the optimized filling of ListViews.</p><p>Almost all this stuff i implemented as several functions and placed them in new file ChannelListHelper.cs</p><p></p><p>Other changes:</p><ul> <li data-xf-list-type="ul">added enumeration ChannelProviderType instead of direct numbers (i hate magic numbers in code)</li> <li data-xf-list-type="ul">added function to retrieve icon index for a channel from its tuningdetails (again, i hate magic numbers)</li> <li data-xf-list-type="ul">consolidated radio and tv code (this part contains most of spaces/linefeeds changes in the patch) for easier maintaining of it later</li> <li data-xf-list-type="ul">added "use for EPG only" to radio EPG channel list (similar to TV list, also see above)</li> <li data-xf-list-type="ul">added indication of DVB-S2 channels</li> </ul><p></p><p>I hope that devs also take a critical look to my coding style, and if it doesn't fit to MP - then let me know <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="Vasilich, post: 785629, member: 97516"] i know that it won't come into trunk in at least 2 weeks, but still.. reworked version of the patch with optimizations for almost every channel list in TVSetup: [LIST] [*]Tv/Radio complete channel lists and channel list groups [*]Tv/Radio channel mapping lists [*]Tv/Radio channel combining lists [*]Tv/Radio EPG channel lists [*]Combobox with all channels in Manual control [/LIST] Optimization (in my case getting e.g. "All channels" TV group content for 4k5 channels takes now less than 4 seconds instead of 80 in unpatched SetupTV) is done via rewriting of SQL queries and using dictionaries for searching in lists. Another part is the optimized filling of ListViews. Almost all this stuff i implemented as several functions and placed them in new file ChannelListHelper.cs Other changes: [LIST] [*]added enumeration ChannelProviderType instead of direct numbers (i hate magic numbers in code) [*]added function to retrieve icon index for a channel from its tuningdetails (again, i hate magic numbers) [*]consolidated radio and tv code (this part contains most of spaces/linefeeds changes in the patch) for easier maintaining of it later [*]added "use for EPG only" to radio EPG channel list (similar to TV list, also see above) [*]added indication of DVB-S2 channels [/LIST] I hope that devs also take a critical look to my coding style, and if it doesn't fit to MP - then let me know ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
optimize listview controls filling in TVSetup - Channel list for groups
Contact us
RSS
Top
Bottom