Anto, On Thursday 2017-01-19 10:52, Antonio Cuni wrote:
But on top of that you need to put a layer which exposes a pythonic interface (for example, offering list-like classes with an __iter__ and a __getitem__). So I have no idea of how the final speed of the thing will be, until someone tries and measure :).
yes, I did something like that for std::vector (C++11 guarantees that the memory it contains is contiguous). Still, I'm going to compare what I did with your code as std::vector in C++ is as efficient as it gets, so there is a lot of ground to cover. Thanks, Wim -- wlavrij...@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev