Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing items when inserting them from >2 processes #2

Open
gatopeich opened this issue Mar 10, 2019 · 1 comment
Open

Missing items when inserting them from >2 processes #2

gatopeich opened this issue Mar 10, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gatopeich
Copy link
Owner

$ python3.7 mp_dict_test.py mpdict 1
Testing mpdict on 1 processes X 100000 items...
Elapsed 0.252968 seconds
d[100000]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground10', 'Foreground') ('Foreground100', 'Foreground') ('Foreground1000', 'Foreground') ('Foreground10000', 'Foreground') ('Foreground10001', 'Foreground') ('Foreground10002', 'Foreground') ('Foreground10003', 'Foreground')

$ python3.7 mp_dict_test.py mpdict 2
Testing mpdict on 2 processes X 100000 items...
Elapsed 0.256442 seconds
d[100000]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground10', 'Foreground') ('Foreground100', 'Foreground') ('Foreground1000', 'Foreground') ('Foreground10000', 'Foreground') ('Foreground10001', 'Foreground') ('Foreground10002', 'Foreground') ('Foreground10003', 'Foreground')

 $ python3.7 mp_dict_test.py mpdict 3
Testing mpdict on 3 processes X 100000 items...
Elapsed 0.23387 seconds
d[99956]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground10', 'Foreground') ('Foreground100', 'Foreground') ('Foreground1000', 'Foreground') ('Foreground10000', 'Foreground') ('Foreground10001', 'Foreground') ('Foreground10002', 'Foreground') ('Foreground10003', 'Foreground')
@gatopeich gatopeich added bug Something isn't working help wanted Extra attention is needed labels Jul 17, 2020
@rwarren
Copy link

rwarren commented May 15, 2023

I know this project has not seen a commit for 4 years and is likely dead, but...

Any updates here, or ideas on where/how to fix? It obviously seems like a locking issue, but any tips and insight would shorten fix time.

Still an issue:

~/gcode/mpdict$ python ./mp_dict_test.py dict 5
Testing dict on 5 processes X 100000 items...
Elapsed 0.0270501 seconds
d[20000]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground2', 'Foreground') ('Foreground3', 'Foreground') ('Foreground4', 'Foreground') ('Foreground5', 'Foreground') ('Foreground6', 'Foreground') ('Foreground7', 'Foreground') ('Foreground8', 'Foreground')

~/gcode/mpdict$ python ./mp_dict_test.py mpdict 5
Testing mpdict on 5 processes X 100000 items...
Elapsed 0.171987 seconds
d[99669]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground10', 'Foreground') ('Foreground100', 'Foreground') ('Foreground1000', 'Foreground') ('Foreground10000', 'Foreground') ('Foreground10001', 'Foreground') ('Foreground10002', 'Foreground') ('Foreground10003', 'Foreground')

~/gcode/mpdict$ python ./mp_dict_test.py mpdict 5
Testing mpdict on 5 processes X 100000 items...
Elapsed 0.171248 seconds
d[99671]: ('Foreground0', 'Foreground') ('Foreground1', 'Foreground') ('Foreground10', 'Foreground') ('Foreground100', 'Foreground') ('Foreground1000', 'Foreground') ('Foreground10000', 'Foreground') ('Foreground10001', 'Foreground') ('Foreground10002', 'Foreground') ('Foreground10003', 'Foreground')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants