> > -----Original Message-----
> > From: Roberts, William C
> > Sent: Monday, September 19, 2016 2:45 PM
> > To: email@example.com; seandroid-l...@tycho.nsa.gov;
> > s...@tycho.nsa.gov; jda...@google.com
> > Cc: Roberts, William C <william.c.robe...@intel.com>
> > Subject: [RFC] mmap file_contexts and property_contexts:
> > From: William Roberts <william.c.robe...@intel.com>
> > THIS IS WIP...
> > Rather than using stdio and making copies, just mmap the files and use
> > the pointers in place. The affect of this change, is that text file
> > load time is now faster than binary load time by 4.7% when testing
> > with a file_contexts file from the Android tree. Note that the Android
> > doesn't
> use monstrous regexs.
> > Times are the average of 3 runs.
> > BEFORE:
> > Text file allocs: 114803
> > Text file load time: 0.266101
> > Bin file allocs: 93073
> > Bin file load time: 0.248757667
> > AFTER:
> > Text file allocs: 103933
> > Text file load time: 0.236192667
> > Bin file allocs: 87645
> > Bin file load time: .247607333
Another potential issue, is that mmaping with textfiles also has the sideffect
of mapping in all the spaces or tabs, etc used, between fields, so on files with
heavy whitespace, it could be really memory intensive.
I think Janis's patch that has -r option is a more useful way to go. Without
Regex's its essentially a textfile without the whitespace, and it automatically
get pulled into the mmap interface.
I'm abandoning this, since we already get this functionality, without the
Janis, IIRC, you are re-configuring your patch so -r omits pre-compiled regex's
I believe on the list and awaiting other patches) and adding an arch string so
Detect when we need to recompile the regular expressions if they are supplied
I think we may want to investigate to have the "omit pre-compiled regex's" work
library variants as well, but I doubt it would be used since Android is moving
Selinux mailing list
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.