News for hackers. Stuff that matters.
Re:Pulsar: Concurrent framework for Python by aidos on Thursday August 06, 2015 @07:16PM (#10020064)
For comparison, I get the same sort of speed on my system:

    %timeit p = pickle.dumps(a)
    1 loops, best of 3: 1.14 s per loop
But tostring and fromstring run in a fraction of the time.

    %timeit s = a.tostring()
    1000 loops, best of 3: 1.13 ms per loop

    %timeit b = np.fromstring(s).reshape(800, 600, 3)
    1000 loops, best of 3: 1.57 ms per loop

    np.all(a == b)
    True

There are no comments on this comment yet.