summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/tinfo/comp_scan.c
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2001-02-22 03:26:23 +0000
committerdrahn <drahn@openbsd.org>2001-02-22 03:26:23 +0000
commit31a278045d28f0f2d0666ecb141a7b77ef5b569e (patch)
treebdff1a8210ee6260d3403df36b11e17eddc94aa6 /lib/libcurses/tinfo/comp_scan.c
parentplug mem leak i introduced; spotted by millert (diff)
downloadwireguard-openbsd-31a278045d28f0f2d0666ecb141a7b77ef5b569e.tar.xz
wireguard-openbsd-31a278045d28f0f2d0666ecb141a7b77ef5b569e.zip
Improve the page mapped check algorithm in the powerpc pmap module,
before it was looking through two arrays of 8 and a linked list of undetermined size, before deciding that a mapping was not valid. Now it allocates a data structure and caches that data. This improves both pmap_enter and pmap_remove because both check to see if a mapping is valid before taking the appropriate actions. Also in pmap_remove, if the va mapping is found, stop searching for it in the rest of this array, the alternate array and the linked list. only one valid mapping of each va is allowed. This change improved lat_mmap (from lmbench) from 1300 to 720 and fork+exit from 7320 to 2724 microseconds.
Diffstat (limited to 'lib/libcurses/tinfo/comp_scan.c')
0 files changed, 0 insertions, 0 deletions