Rewrite the handling of SAA's to allow random access
commit9d637df6daa2f079ac3cd7623ab6694e4692d1b9
authorH. Peter Anvin <hpa@zytor.com>
Thu, 4 Oct 2007 20:42:56 +0000 (4 13:42 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 4 Oct 2007 20:42:56 +0000 (4 13:42 -0700)
treeedfe6dddc84d094b83d24e4a609351a4a5105366
parent12e46510bc185fff839530bba0c7becaaf307037
Rewrite the handling of SAA's to allow random access

SAA's were never intended to allow random access, but several backends
do random or semirandom access via saa_fread() and saa_fwrite()
anyway.  Rewrite the SAA system to allow for efficient random access.

On "label.pl 10000000" this improves performance by a factor of 12.
nasm.c
nasmlib.c
nasmlib.h