Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Limits . . .
#9
In Cython you can release the GIL, but given the application (will be IO intensive rather than CPU intensive) I would agree with @deanhystad that the GIL is unlikely to get in your way. And, releasing the GIL means you have to do the GIL's work. There is no free lunch.

IMHO, your bottlenecks will be getting info from your long term storage and placing that info on the network, not CPU processing. Threads will be "happy" to yield the processor while waiting for those things to happen.

I don't know the details, but a quick Google search tells me that the following popular sites are done in Python:
Youtube
Instagram
Reddit
Spotify
and the list goes on
Reply


Messages In This Thread
Thread Limits . . . - by JohnnyCoffee - Mar-01-2023, 02:00 AM
RE: Thread Limits . . . - by deanhystad - Mar-01-2023, 02:12 AM
RE: Thread Limits . . . - by JohnnyCoffee - Mar-01-2023, 04:42 AM
RE: Thread Limits . . . - by bowlofred - Mar-01-2023, 07:47 AM
RE: Thread Limits . . . - by jefsummers - Mar-01-2023, 01:09 PM
RE: Thread Limits . . . - by JohnnyCoffee - Mar-01-2023, 01:17 PM
RE: Thread Limits . . . - by deanhystad - Mar-01-2023, 09:49 PM
RE: Thread Limits . . . - by JohnnyCoffee - Mar-01-2023, 11:16 PM
RE: Thread Limits . . . - by jefsummers - Mar-02-2023, 12:57 PM
RE: Thread Limits . . . - by JohnnyCoffee - Mar-02-2023, 04:44 PM
RE: Thread Limits . . . - by jefsummers - Mar-03-2023, 04:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do i add limits to this code ? learn1 3 2,098 Feb-07-2020, 02:30 AM
Last Post: stullis
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,835 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020