1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / pypy / objspace / std / specialisedtupleobject.py

Author Commit Message Date Builds
Maciej Fijalkowski
backout 5f1c0d3ad87f
Maciej Fijalkowski
few more hits
Armin Rigo
Checking a lighter variant of SpecialisedTuples with only 'ii', 'ff' and 'oo' specialisations. It seems that the previous version causes long warm-up times on the sympy_* benchmarks. We will see how it compares in performance.
Armin Rigo
- fix space.fixedlist/unpackiterable/listview to handle directly tuples of any kind - fix the test to raise an OperationError, printing nicer tracebacks
Armin Rigo
Re-add and review this code. Needed to ensure that "tup*1 is tup", in case obscure code depends on it.
Armin Rigo
Test and fix.
Armin Rigo
hg merge default
Armin Rigo
translation fix
Armin Rigo
Rework the source code. Kill a few features that don't really make sense to have; write by hand a fast decision tree to pick which tuple to specialize for; general fixes left and right.
Armin Rigo
- rename ANY to Any to avoid confusion - use a more pragmatic approach of having 10 specialized versions, for all for 2-tuples in all combinations, with the exception that floats only get the (float, float) combination.
Mark Pearse
(mwp) store ANY elements wrapped, and fix bug in hash test
Mark Pearse
(mwp) also support specialised tuples with 'any' type
Mark Pearse
(mwp) move try_specialisation to be a class method of specialised class, and unroll specialisation loop
Mark Pearse
(mwp) equality and order tests now check w_other is same specialisation to avoid mixed type comparisons
Mark Pearse
(mwp) make_specialised_class take a tuple, not a list - rename and assert
Mark Pearse
(mwp) reinstate inherited tuple tests, and add mul__SpecialisedTuple_ANY to fix identity test failure
Mark Pearse
(mwp) add tests and code to generate name of each specialised class from its element types
Mark Pearse
(mwp) add tests and code for some specialised 3-tuples + add slice multimethod
Mark Pearse
(mwp) use unrolling_iterable to generate access to tuple elements
Mark Pearse
(mwp) use a tuple of types as parameter to make_specialised_class
Mark Pearse
(mwp) replace specific code to create SpecialisedTupleObjects with generic
Mark Pearse
(mwp) fix hash so it deals with flaots that are ints properly
Mark Pearse
(mwp) add code for ordering of specialised 2-tuples
Mark Pearse
(mwp) create Classes for float-float and str-str specialisations
Mark Pearse
(mwp) pass new class name as parameter to creator and tidy locals
Mark Pearse
(antocuni, mwp) create specialisedtuple class dynamically
Mark Pearse
(antocuni, mwp) spelling error
Mark Pearse
(antocuni, mwp) improve eq test and kill commented code
Mark Pearse
(antocuni, mwp) make sure that tuple in test_eq does not delegate
Mark Pearse
(antocuni, mwp) make sure that tuple in test_getitem does not delegate
  1. Prev
  2. 1
  3. 2
  4. Next