Skip to content

Why this is so much faster ? #5

@lamhoangtung

Description

@lamhoangtung

Hi, thanks for the great works. I'm testing out this module with the timing_comparison.py script provided.

Since this was only made for Python 3.6 and 3.7, and made a clone of this for Python 3.8 with: from shared_numpy.shared_memory import SharedMemory but the result is soo much worse than your implementation:

shared_numpy (Python 3.7):

not shared
total time: 1.25028395652771
shared
total time: 0.008873939514160156

My shared_numpy clone using Python 3.8:

not shared
total time: 1.307685136795044
shared
total time: 0.238494873046875

That's 26 times slower for the same test conditions.

I'm wondering why ? Are there any magic sauce in your SharedMemory implementation vs python 3.8 SharedMemory ?

Also, can your SharedMemory works on Windows as well ?

Hope you can clear me out here. Thanks for checking by @dillonalaird!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions