Guido van Rossum e ikemiselitse ho fihlela keketseho ea ts'ebetso ea 3.11x ho CPython XNUMX

Guido van Rossum, moetsi oa puo ea lenaneo la Python, o buile ka merero ea ho ntlafatsa ts'ebetso ea CPython tlalehong ea hae Sebokeng sa Puo ea Python. Ka mofuta oa 3.11, o lebelletsoeng ka 2022, bahlahisi ba ts'epa ho eketsa ts'ebetso habeli. Morero oa CPython optimization o ntse o etsoa ke sehlopha se senyenyane sa baetsi ba Microsoft, moo Guido a sa tsoa kopanela.

Ha ba kenya ts'ebetsong morero ona, bahlahisi ba ikemiselitse ho khomarela lithibelo tse 'maloa, tse kang ho boloka tumellano e feletseng ho ABI le boemo ba khoutu, hammoho le ho se amohelehe ho eketsa ts'ebetso ka lebaka la ho fokotseha ha maemo a bohale. Har'a likarolo tse ka fetoloang ho ntlafatsa ts'ebetso ke bytecode, ho behoa ha data mohopolong, moqapi le mofetoleli.

Lintlafatso tsa morero li phatlalatsoa sebakeng se arohaneng se potlakileng sa cpython. E mong oa barupeluoa ba morero, eo pele a neng a ntlafalitse moqapi oa HotPy JIT bakeng sa CPython, o ile a hatisa moralo ho latela seo a se nkang e le ntho ea sebele ho eketsa tlhahiso ka makhetlo a mahlano le ho finyella sephetho sena ho lokolloa ha Python 3.13. Morero o arotsoe ka mekhahlelo e mene:

  • Python 3.10 e rera ho kenya ts'ebetsong lintlafatso ho mofetoleli o amanang le ho fetola mokhoa oa ho fetolela ho mefuta le boleng ka nako ea ho sebetsa.
  • Ho lokolloa ha Python 3.11 ho lebelletsoe ho hlahisa lintlafatso ho nako ea ho sebetsa le lintho tsa bohlokoa, hammoho le ho kenyelletsoa ha lintlafatso tse ngata tse ikhethileng, joalo ka ho potlakisa basebelisi ba binary le ho sebetsa ka litekanyetso tse felletseng tse lumellanang le lentsoe le le leng la mochini, ho potlakisa. ho letsa le ho kgutla ho tswa ho ditshebetso, ho fokotsa bokahodimo nakong ya tshebetso ka memori le ho sebetsana le mokgelo.
  • Python 3.12 e tla hlahisa moqapi o bonolo oa JIT bakeng sa karolo e nyane ea khoutu e ikhethang.
  • Python 3.13 e tla eketsa bokhoni bo bocha ba ho hlahisa khoutu ea nako ea nako le ts'ebeliso e atolositsoeng ea moqapi oa JIT.

Source: opennet.ru

Eketsa ka tlhaloso