Bugzilla – Bug 1702
checking formats could be more optimised
Last modified: 2008-09-15 14:37:04 UTC
I always notice the huge amount of text when we start playback using d_source. This shows a lot of activity for checking formats that I'm sure isn't needed. Its fast, but so easily faster. We check profiles, then check that its enabled and then check for binaries. What would be faster is to only bother to check if its enabled/binaries if there is a valid command to care about. In my test, this reduced the time from 12ms to 7ms. patch and test logs coming soon
Created attachment 560 [details] before shows the time from open song to valid command and open song. really chatt no?
Created attachment 561 [details] after now, we check profiles and just skip the rest if there is no entry found. no entry, no care if its officially enabled or not and no care about binaries.
Created attachment 562 [details] patch to get from before to after just a small shift in tests and we skip a few steps when we have found that there is no entry to care about.
Looks good to me. Go with it.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.