[x264-devel] commit: Use threadpools to avoid unnecessary thread creation ( Steven Walters )

git at videolan.org git at videolan.org
Thu Jul 15 04:08:45 CEST 2010


x264 | branch: stable | Steven Walters <kemuri9 at gmail.com> | Wed Jun  9 18:14:52 2010 -0400| [ccb8391f68b1657d9d4155ad4f12e2b98660b0c0] | committer: Jason Garrett-Glaser 

Use threadpools to avoid unnecessary thread creation
Tiny performance improvement with fast settings and lots of threads.
May help more on some OSs with slow thread creation, like OS X.
Unify inconsistent synchronized abbreviations to sync.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ccb8391f68b1657d9d4155ad4f12e2b98660b0c0
---

 Makefile            |    3 +-
 common/common.h     |   10 ++-
 common/frame.c      |   19 +++++-
 common/frame.h      |    9 ++-
 common/threadpool.c |  163 +++++++++++++++++++++++++++++++++++++++++++++++++++
 common/threadpool.h |   39 ++++++++++++
 encoder/encoder.c   |   79 ++++++++++++-------------
 encoder/lookahead.c |   22 ++++----
 input/thread.c      |   17 ++---
 9 files changed, 288 insertions(+), 73 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=ccb8391f68b1657d9d4155ad4f12e2b98660b0c0


More information about the x264-devel mailing list