Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Remove shared dicts #64

Closed
wants to merge 4 commits into from

Conversation

zerobfd
Copy link
Contributor

@zerobfd zerobfd commented Oct 21, 2013

Fixes issue #32

Removed the shared dictionaries that the analyzer process/subprocesses used to pass information and replaced them with queues instead.

zerobfd and others added 2 commits October 19, 2013 11:05
Some errors were being introduced by the dictionary proxy objects,
so instead of using shared dictionaries we now have a couple of
queues that we populate in the subprocesses and then make the
dictionaries in the main thread.
self.exceptions = Manager().dict()
self.anomaly_breakdown = Manager().dict()
self.exceptions = dict()
self.anomaly_breakdown = dict()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If these are only accessed during the run() method, might it better to remove them as class properties and treat them as local variables only (in the run() method)?

exceptions = dict()
anomaly_breakdown = dict()
while 1:
try:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please do 4 spaces indentation as per PEP8?

@astanway astanway closed this Oct 22, 2013
@zerobfd zerobfd deleted the remove_shared_dicts branch October 29, 2013 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants