diff options
| author | Kent Overstreet <[email protected]> | 2023-05-20 21:44:30 -0400 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 17:10:02 -0400 |
| commit | c4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1 (patch) | |
| tree | 4be0daffa01be52e7629c131bb43cbec38c943a3 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | d2c86b77de5894bbe26ecbf5214227f61855aed7 (diff) | |
six locks: Simplify dispatch
Originally, we used inlining/flattening to cause the compiler to
generate different versions of lock/trylock/relock/unlock for each lock
type - read, intent, and write. This made the individual functions
smaller and let the compiler eliminate table lookups: however, as the
code has gotten more complicated these optimizations have gotten less
worthwhile, and all the tricky inlining and dispatching made the code
less readable.
Text size: 11015 bytes -> 7467 bytes, and benchmarks show no loss of
performance.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions