I want to implement a monochrome grid of 1024x1024, I need to read data from any cell and insert rectangles with different sizes, I tried to make a list in a list (and use it as a 2d array), what I found is a list of booleans is slower than a list of integers of numbers .... I tried a 1d list and it was slower than 2d, numpy slower about 10 times larger than the standard python list, the fastest way I found is with PIL and the monochromatic bitmap used with "load", but I want it to run much faster, by I tried to compile it using shedskin, but, unfortunately, there is no support for the pilots, do you know any way to implement such a grid rapidly, without rewriting it in c or C ++?
source
share