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: mongodb/mongo-python-driver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: dowski/mongo-python-driver
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.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 2, 2010

  1. Performance improvements for reading from GridFS.

    Switched to join()ing strings instead of concatenating them. The time
    spent in GridOut.read() is now less than 1% of what it was before. All
    tests pass.
    
    Before:
       ncalls  tottime  percall  cumtime  percall filename:lineno(function)
            1    0.000    0.000    0.001    0.001 grid_file.py:316(__init__)
            1    1.362    1.362    1.901    1.901 grid_file.py:375(read)
           32    0.000    0.000    0.000    0.000 grid_file.py:54(getter)
    
    After:
       ncalls  tottime  percall  cumtime  percall filename:lineno(function)
            1    0.000    0.000    0.001    0.001 grid_file.py:316(__init__)
            1    0.005    0.005    0.567    0.567 grid_file.py:375(read)
           32    0.000    0.000    0.000    0.000 grid_file.py:54(getter)
    dowski authored and Christian Wyglendowski committed Sep 2, 2010
    Configuration menu
    Copy the full SHA
    de9d180 View commit details
    Browse the repository at this point in the history
Loading