Replies: 1 comment
-
After all the rewrites it looks like plex is still the slowest of the two and it seems to come down to how many times |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now parallization is handed in two different ways, for Plex queries its handled via the thread pool executor and for jellyfin its handled via async requests. Based on my two servers the Plex side takes the longest so it would be nice to speed it up a bit. Looking at backblaze blog there is a post discussing a fork of python that has the GIL removed to allow true parallelization when doing requests for files which is similar in the current Plex implementation where it will query the Plex database on separate threads so there is no real reliance on other threads so it might be faster to try this will the 3.9-nogil fork that was created compared to the latest cpython implementation.
The change should hopeful be a simple by just changing the dockerfile from the original cpython to the nogil version.
https://github.com/colesbury/nogil
https://www.backblaze.com/blog/python-gil-vs-nogil-boost-i-o-performance-10x-with-one-line-change/?utm_campaign=Developer%20Newsletter&utm_medium=email&_hsenc=p2ANqtz-9Eo9DKXVtqLY3Z01ASBl7XyyAebN4rlbvAwCh9zg3pNTk8QkVy1fac073Oiuce5cKa3-IsmLGboGNdlliOIz-1Vx3ViA&_hsmi=261539223&utm_content=261515264&utm_source=hs_email&hsCtaTracking=2fd7978a-6c78-43cc-ad0a-5fe0a3bffa13%7Ccf5dfa8b-4d9b-432f-8bdd-5d37d38d3737
Beta Was this translation helpful? Give feedback.
All reactions