Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: samuelcolvin/python-devtools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: kalekundert/python-devtools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Apr 16, 2020

  1. Defer importing devtools in sitecustomize.py.

    It's convenient to be able to use `debug()` as if it were a builtin
    function, but importing `devtools` directly in `sitecustomize.py` is a
    pretty significant performance hit for every invocation of python that
    doesn't use `debug()`.  Specifically, this import takes 100-200 ms,
    which is a noticeable delay for interactive sessions and short-running
    scripts:
    
        $ python -X importtime -c 'import devtools'
    
    While it would probably be possible to make `devtools` faster to import,
    the best solution is simply to avoid importing `devtools` unless it will
    be used.  It took me a while to figure out how to do this, but in the
    end the code is pretty clear and succinct, and I think it will be useful
    to others.
    kalekundert committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    c984a87 View commit details
    Browse the repository at this point in the history
  2. Add parentheses.

    kalekundert committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    9294134 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Configuration menu
    Copy the full SHA
    f6d114c View commit details
    Browse the repository at this point in the history
  2. Update example in docs.

    kalekundert committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    b177350 View commit details
    Browse the repository at this point in the history
Loading