[Buildroot] [PATCH v3 1/2] support/scripts/pkg-stats: add support for CVE reporting
Peter Korsgaard
peter at korsgaard.com
Wed Feb 19 21:34:07 UTC 2020
>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> writes:
Hi,
> In the memory usage, RES first increased to ~4G, and then dropped back
> to 2.2G. I think this is the Python garbage collector kicking in,
> _after_ the new file is loaded.
> So the worst case memory usage is roughly the size of two largest
> subsequent years.
> Doing some quick google search, I stumbled upon the 'pandas' python
> package, which has a read_json function too. During a quick test, it
> seemed to be more memory efficient, and the total memory size on
> subsequent reads stayed in the 2.x GB range.
> content = pandas.read_json('/tmp/nvd/nvdcve-1.0-2019.json.gz')
> content = pandas.read_json('/tmp/nvd/nvdcve-1.0-2018.json.gz')
> In the full test of pkg-stats, I still saw a peak memory usage near
> the end, but it 'seemed' better :-)
Or perhaps something that doesn't load the entire json structure into
memory? Jsonslicer seems like a possible solution:
https://pypi.org/project/jsonslicer/
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list