- 12 Aug, 2015 8 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
More small optimizations
-
Kevin Modzelewski authored
Some work on the NumPy test
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Improve dictionary performance
-
Kevin Modzelewski authored
Get Pyston building on Fedora
-
- 11 Aug, 2015 20 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Previously it would have to call out to checkAndThrowCAPIException(), which is quite a bit slower than what it now can do, which is directly checking the return value.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Previously, we would just call these "conservative python" objects, and scan their memory conservatively. The problem with this is that the builtin type might have defined a custom GC handler that needs to be called in addition to the conservative scanning (ie it stores GC pointers out-of-band that are not discoverable via other gc pointers). We had dealt with these kinds of issues before which is why I added the "conservative python kind", but I think the real solution here is to say that to the GC, these objects are just python objects, and then let the type machinery decide how to scan the objects, including how to handle the inheritance rules. We were already putting "conservativeGCHandler" as the gc_handler on these conservative types, so let's use it.
-
Kevin Modzelewski authored
Refactors on types of GC objects
-
Kevin Modzelewski authored
-
Rudi Chen authored
-
Rudi Chen authored
Instead of GCKind::HIDDEN_CLASS, use GCKind::RUNTIME and require that the runtime objects have a gc_visit functions by inheriting from GCAllocatedRuntime.
-
Rudi Chen authored
-
Rudi Chen authored
-
Rudi Chen authored
Those should never exist because all Python objects should be created through the CPython API except for type objects. Unfortunately, some places like NumPy do that so we need a mean of patching it for now.
-
Rudi Chen authored
-
Rudi Chen authored
-
Rudi Chen authored
C extensions (NumPy) might inherit classes in C code and expect to find tp_number. This is just copied from CPython's PyType_Ready. This requires assigning some of the runtime functions to thesq_ and mp_ slots otherwise there are infinite loops from Pyston attributes.
-
Rudi Chen authored
NumPy is huge, bigger than our previous (arbitrary) number by an order of magnitude.
-
Rudi Chen authored
-
Kevin Modzelewski authored
rewrite float comparison base on CPython implementation
-
Boxiang Sun authored
-
- 10 Aug, 2015 11 commits
-
-
Kevin Modzelewski authored
microoptimizations
-
Kevin Modzelewski authored
rewrite additional nonzero() cases
-
Kevin Modzelewski authored
- improve bool and str hash() speed - optimize str.find(char)
-
Kevin Modzelewski authored
Use profiling to know when to throw CAPI exceptions
-
Kevin Modzelewski authored
Rewrite string hash and enable test_hash
-
Kevin Modzelewski authored
if we OSR out of a function, make sure we use the same exception style for the OSR'd version. We could also have the OSR exit code deal with switching exception styles, but for now it doesn't feel worth it.
-
Marius Wachtler authored
-
Kevin Modzelewski authored
Enable validation of printf-style format strings
-
Kevin Modzelewski authored
I had added the ability but forgot to turn it on.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
And fix some of the issues that this found.
-
- 09 Aug, 2015 1 commit
-
-
Kevin Modzelewski authored
Also, allow reraising using CAPI exceptions.
-