On Tuesday, March 3, 2020 12:45:08 PM EST Robbie Harwood wrote:
Steve Grubb <sgrubb(a)redhat.com> writes:
> Hello,
>
> We are working on Application Whitelisting. For this to work, we need
> to have a list of things that we trust. At the moment, that list is
> well over 400k on a desktop install. But we really need to get that
> smaller.
Not that I disagree, but... to what end? What's the goal?
The goal is to reduce memory consumption and search time. Right now it takes
about 165 MB of virtual memory to hold the database. Binary trees are very
efficient in searching, but why search 400k when the items that need to be
trusted is really more like 50k. I'm trying to think of time efficient ways of
pruning the list.
I suppose I can call fnmatch 400k times to keep these python byte code
caches, but I suspect they don't really belong there.
-Steve