blob: 5665c61f2645baa91c604e62007028a68bc9324d [file] [log] [blame]
njne1b349b2005-11-28 17:32:49 +00001-----------------------------------------------------------------------------
2Notes on performance
3-----------------------------------------------------------------------------
4The intent of this file is to record progress in improving performance.
5
6-----------------------------------------------------------------------------
7Just before 3.1.0:
8- Julian made LibVEX_Alloc() inlinable. Saved a couple of percent.
9- Julian started building Vex at -O2. Saved up to 8% or so(?) in some
10 cases.
11
12Post 3.1.0:
13- Julian made the tree builder linear. Saved 2--13% on a range of programs.
njn5096a392005-12-13 20:05:00 +000014- Nick improved vg_SP_update_pass() to identify more small constant
15 increments/decrements of SP, so the fast cases can be used more often.
16 Saved 1--3% on a few programs.
sewardj5d3a1c92005-12-15 21:40:34 +000017- r5345,r5346,r5352: Julian improved the dispatcher so that x86 and
18 AMD64 use jumps instead of call/return for calling translations.
19 Also, on x86, amd64 and ppc32, --profile-flags style profiling was
20 removed from the despatch loop unless --profile-flags is being used.
21 Improved Nulgrind performance typically by 10--20%, and Memcheck
22 performance typically by 2--20%.
njne1b349b2005-11-28 17:32:49 +000023
24COMPVBITS branch:
25- Nick converted to compress V bits, initial version saved 0--5% on most
njn47fb6502005-12-02 23:09:49 +000026 cases, with a 30% improvement on one case (tsim_arch) which calls
njne1b349b2005-11-28 17:32:49 +000027 set_address_range_perms() a lot.
njn47fb6502005-12-02 23:09:49 +000028- Nick rewrote set_address_range_perms(), which gained 0--3% typically,
29 and 22% on tsim_arch.
njne1b349b2005-11-28 17:32:49 +000030