summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2018-04-13 12:43:41 -0700
committerSuren Baghdasaryan <surenb@google.com>2018-04-15 07:54:03 +0000
commit6499e5ec4abe535d97931affc3b1a937fe2f6185 (patch)
tree38f4383b3d6a85117ab06e53091c479969ae30c7 /libutils/Unicode.cpp
parent66b685ef3fe4f66d82fac4005286d53b94f831f2 (diff)
lmkd: Optimize frequent file reads by keeping file descriptors open
To check system memory state lmkd is using same files every time vmpressure event is received. Instead of opening and closing these files every time we store the file descriptor and use pread() to reread the file from the beginning. Bug: 77299493 Bug: 75322373 Merged-In: I8e27f8b9526e82e3cc313a02fce215c2e4dd3d29 Change-Id: I8e27f8b9526e82e3cc313a02fce215c2e4dd3d29 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions