Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Create data manager and spawn new process to keep the vts dictionary. #191

Merged
merged 5 commits into from
Dec 9, 2019

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Dec 6, 2019

A new process is spawn, and it will load the vts in a dictionary.
This process run and keep the collection.
The main process it is lighter now. Therefore, the new fork()'ed scan
processes inherit less memory.

A new process is spawn, and it will load the vts in a dictionary.
This process run and keep the collection.
The main process it is lighter now. Therefore, the new fork()'ed scan
processes inherite less memory.
Also check for None before iterating.
@codecov
Copy link

codecov bot commented Dec 6, 2019

Codecov Report

Merging #191 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   68.38%   68.45%   +0.06%     
==========================================
  Files          12       12              
  Lines        1838     1842       +4     
==========================================
+ Hits         1257     1261       +4     
  Misses        581      581
Impacted Files Coverage Δ
ospd/ospd.py 72.3% <100%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb49132...f0b4fc0. Read the comment docs.

bjoernricks
bjoernricks previously approved these changes Dec 6, 2019
DictProxy in Python 3.5 does not support iteration as over a
regular dict.
@jjnicola jjnicola requested review from bjoernricks and removed request for bjoernricks December 9, 2019 11:52
ospd/ospd.py Outdated Show resolved Hide resolved
Co-Authored-By: Björn Ricks <bjoern.ricks@gmail.com>
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