1. 25 Sep, 2017 4 commits
    • Jason Madden's avatar
      Compile local.py with Cython when available. · 5ba9ab73
      Jason Madden authored
      This makes things *much* faster. We had to make some small code
      changes to acheive this (things like directly accessing variables
      instead of redirecting through object.__getattribute__), but this
      didn't impart PyPy at all (in fact it may actually be faster). New
      timings compared to previous commit:
      
      | Operation             | PyPy 2        | Python 2.7    | Python 3.6    |
      |---------------------- |-------:       |-----------:   |-----------:   |
      | getattr local         |   76ns        |      233ns    |      206ns    |
      | setattr local         |   79ns        |      232ns    |      202ns    |
      | getattr subclass      |   77ns        |      238ns    |      203ns    |
      | setattr subclass      |   75ns        |      238ns    |      204ns    |
      | getattr native local  |    2ns        |      139ns    |       73ns    |
      | setattr native local  |    2ns        |      168ns    |       98ns    |
      | getattr slowdown        	|  38x 	|     1.7x 	|     2.8x 	|
      | setattr slowdown        	|  39x 	|     1.7x 	|     2.1x 	|
      5ba9ab73
    • Jason Madden's avatar
      Merge pull request #1022 from gevent/issue1020 · 9708c0e0
      Jason Madden authored
      Speed up gevent.local
      9708c0e0
    • Jason Madden's avatar
      Inline _get_dict function for more speed. · 143137a7
      Jason Madden authored
      Final numbers are as follows:
      
      | Operation            	| PyPy 2 	| Python 2.7 	| Python 3.6 	|
      |----------------------	|-------:	|-----------:	|-----------:	|
      | getattr local        	|   79ns 	|     1580ns 	|     1120ns 	|
      | setattr local        	|   86ns 	|     1600ns 	|     1090ns 	|
      | getattr subclass     	|   81ns 	|     1640ns 	|     1090ns 	|
      | setattr subclass     	|   84ns 	|     1560ns 	|     1090ns 	|
      | getattr native local 	|    2ns 	|      139ns 	|       73ns 	|
      | setattr native local 	|    2ns 	|      168ns 	|       98ns 	|
      143137a7
    • Jason Madden's avatar
  2. 24 Sep, 2017 1 commit
  3. 23 Sep, 2017 1 commit
  4. 20 Sep, 2017 1 commit
  5. 18 Sep, 2017 5 commits
  6. 11 Sep, 2017 1 commit
  7. 30 Aug, 2017 1 commit
  8. 04 Aug, 2017 2 commits
  9. 21 Jul, 2017 12 commits
  10. 20 Jul, 2017 7 commits
  11. 10 Jul, 2017 2 commits
  12. 01 Jul, 2017 2 commits
  13. 19 Jun, 2017 1 commit