mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Add speedups from pyston (#264)
This should make Python go 30% faster. It does that by trading away some debuggability, like _tracemalloc. It can be re-enabled using `make MODE=dbg`.
This commit is contained in:
parent
31dd714081
commit
27f7ffd4fd
15 changed files with 175 additions and 12 deletions
5
third_party/python/Lib/test/test_dict.py
vendored
5
third_party/python/Lib/test/test_dict.py
vendored
|
@ -1,3 +1,4 @@
|
|||
import _cosmo
|
||||
import collections
|
||||
import collections.abc
|
||||
import gc
|
||||
|
@ -1221,7 +1222,9 @@ class CAPITest(unittest.TestCase):
|
|||
self.assertEqual(dict_getitem_knownhash(d, 'z', hash('z')), 3)
|
||||
|
||||
# not a dict
|
||||
self.assertRaises(SystemError, dict_getitem_knownhash, [], 1, hash(1))
|
||||
# find the APE compilation mode, run this test in dbg only #
|
||||
if _cosmo.MODE == "dbg":
|
||||
self.assertRaises(SystemError, dict_getitem_knownhash, [], 1, hash(1))
|
||||
# key does not exist
|
||||
self.assertRaises(KeyError, dict_getitem_knownhash, {}, 1, hash(1))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue