[Python-checkins] [python/cpython] a8f8d5: bpo-29585: optimize site.py startup time (GH-136)

GitHub noreply at github.com
Wed Jun 28 11:31:55 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4
      https://github.com/python/cpython/commit/a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4
  Author: INADA Naoki <methane at users.noreply.github.com>
  Date:   2017-06-29 (Thu, 29 Jun 2017)

  Changed paths:
    M Lib/site.py
    M Lib/sysconfig.py
    M Lib/test/test_site.py
    A Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst
    M Python/sysmodule.c
    M configure
    M configure.ac
    M pyconfig.h.in

  Log Message:
  -----------
  bpo-29585: optimize site.py startup time (GH-136)

Avoid importing `sysconfig` from `site` by copying minimum code.
Python startup is 5% faster on Linux and 30% faster on macOS




More information about the Python-checkins mailing list