Bug 1271166: Reduce media thread pool size. r?cpearce draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 09 May 2016 12:34:22 +1000
changeset 364697 ad3f05ec065e75c3ab742d5688111da333ba035a
parent 364696 523cc18de2b070ec67ae9bdc60d00e5169e53e3a
child 520370 5631f3ff87d0fd0b97478962a0cad2f3fdca3576
push id17546
push userbmo:jyavenard@mozilla.com
push dateMon, 09 May 2016 02:35:14 +0000
reviewerscpearce
bugs1271166
milestone49.0a1
Bug 1271166: Reduce media thread pool size. r?cpearce A thread pool of 8 threads is already more than enough; especially considering that the media decoder use their own threading model. MozReview-Commit-ID: BOFjNnYTaRz
dom/media/VideoUtils.cpp
--- a/dom/media/VideoUtils.cpp
+++ b/dom/media/VideoUtils.cpp
@@ -200,17 +200,17 @@ already_AddRefed<SharedThreadPool> GetMe
     default:
       MOZ_FALLTHROUGH_ASSERT("Unexpected MediaThreadType");
     case MediaThreadType::PLAYBACK:
       name = "MediaPlayback";
       break;
   }
   return SharedThreadPool::
     Get(nsDependentCString(name),
-        Preferences::GetUint("media.num-decode-threads", 12));
+        Preferences::GetUint("media.num-decode-threads", 4));
 }
 
 bool
 ExtractH264CodecDetails(const nsAString& aCodec,
                         int16_t& aProfile,
                         int16_t& aLevel)
 {
   // H.264 codecs parameters have a type defined as avcN.PPCCLL, where