Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #7616: Revert settings cache behaviour introduced in [20828]

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


mythtv at cvs

Nov 19, 2009, 7:32 AM

Post #1 of 3 (395 views)
Permalink
Ticket #7616: Revert settings cache behaviour introduced in [20828]

#7616: Revert settings cache behaviour introduced in [20828]
------------------------------+---------------------------------------------
Reporter: danielk | Owner: danielk
Type: patch | Status: new
Priority: minor | Milestone: 0.23
Component: MythTV - General | Version: head
Severity: medium | Mlocked: 0
------------------------------+---------------------------------------------
We stopped caching default values, which caused a noticeable performance
regression in playback startup. I'm attaching two patches to this ticket,
one for trunk, the other for 0.22-fixes.

I asked Michael T. Dean about this and the main problem this was trying to
address was the caching of defaults when Get{,Num,Float}Setting was called
without a default. Then "", 0, and 0.0 would get cached. To address this
problem without the performance implications of not caching defaults at
all we use a sentinel value of "<settings_sentinel_value>" and never cache
that value. The secondary problem this tried to solve was
Get{,Num,Float}Settings called with different defaults in two or more
places, this coding error should not cause the types of problems that
caching "", 0, and 0.0 can cause since anyone providing a default should
be picking a sane one.

Note: There is a bit of unneeded redundancy in the settings code, I will
be addressing that in trunk in separate patch.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7616>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Nov 28, 2009, 2:07 PM

Post #2 of 3 (301 views)
Permalink
Re: Ticket #7616: Revert settings cache behaviour introduced in [20828] [In reply to]

#7616: Revert settings cache behaviour introduced in [20828]
------------------------------+---------------------------------------------
Reporter: danielk | Owner: danielk
Type: patch | Status: new
Priority: minor | Milestone: 0.23
Component: MythTV - General | Version: head
Severity: medium | Mlocked: 0
------------------------------+---------------------------------------------

Comment(by danielk):

(In [22917]) Refs #7616. Revert to original setting cache behaviour with
respect to default values.

This was changed a couple times to not cache defaults, causing some
massive slowdowns in the app. This reverts to caching default values when
spevifies, but avoids doing so when no default value is not explicitly
specified.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7616#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits


mythtv at cvs

Dec 29, 2009, 10:31 AM

Post #3 of 3 (234 views)
Permalink
Re: Ticket #7616: Revert settings cache behaviour introduced in [20828] [In reply to]

#7616: Revert settings cache behaviour introduced in [20828]
------------------------------+---------------------------------------------
Reporter: danielk | Owner: danielk
Type: patch | Status: closed
Priority: minor | Milestone: 0.23
Component: MythTV - General | Version: head
Severity: medium | Resolution: fixed
Mlocked: 0 |
------------------------------+---------------------------------------------
Changes (by danielk):

* status: new => closed
* resolution: => fixed


Comment:

Since the next release is fairly soon I'm not going to try to backport
this to 0.22-fixes

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7616#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.