Commit 56143d0b authored by Stefan Behnel's avatar Stefan Behnel

reduce freelist sizes below the number of created objects

parent 94a4231b
......@@ -3,7 +3,7 @@
cimport cython
@cython.freelist(8)
@cython.freelist(4)
cdef class ExtTypeNoGC:
"""
>>> obj = ExtTypeNoGC()
......@@ -15,7 +15,7 @@ cdef class ExtTypeNoGC:
"""
@cython.freelist(8)
@cython.freelist(4)
cdef class ExtTypeWithGC:
"""
>>> obj = ExtTypeWithGC()
......@@ -69,7 +69,7 @@ cdef class LargerExtSubType(ExtSubType):
self.attribute2 = object()
@cython.freelist(8)
@cython.freelist(4)
cdef class ExtTypeWithCAttr:
"""
>>> obj = ExtTypeWithCAttr()
......@@ -156,7 +156,7 @@ def test_cmethods(ExtTypeWithCMethods obj not None):
return x, obj.get_cattr()
@cython.freelist(8)
@cython.freelist(4)
cdef class ExtTypeWithRefCycle:
"""
>>> obj = first = ExtTypeWithRefCycle()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment