[Lldb-commits] [PATCH] D28233: Improve the performance of jModulesInfo in lldb-server

Tamas Berghammer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 3 07:21:56 PST 2017

tberghammer created this revision.
tberghammer added a reviewer: labath.
tberghammer added a subscriber: lldb-commits.

Improve the performance of jModulesInfo in lldb-server

Previously it parsed /proc/<pid>/maps for every module separately
resulting in a very slow response time. This CL add some caching and
optimizes the implementation to improve the code from O(n*m) to O(n+m)
where n is the number of modules requested and m is the number of
files mapped into memory.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28233.82884.patch
Type: text/x-patch
Size: 9560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170103/cb7f9914/attachment-0001.bin>

More information about the lldb-commits mailing list