summaryrefslogtreecommitdiff
path: root/test/incbin.data
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-09-21 14:03:18 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-09-21 14:07:17 -0700
commitd81a235f33e78ef6b942788b42db073ed51fa801 (patch)
tree595f64bc54b7a9ca68ee44dd7f33909afa40083c /test/incbin.data
parentc170089e7cfd876b61c5d110df04989696c25fc6 (diff)
downloadnasm-d81a235f33e78ef6b942788b42db073ed51fa801.tar.gz
file: improve the file access interface
A number of fairly common operations are invoked way too many times, especially when using incbin. Drastically reduce the number of system calls that need to be executed, and use memory mapping to reduce unnecessary double buffering. We could improve this further by leaving files open once used; however, that might run into file count problems on some systems. Still unclear is why we seem to invoke nasm_file_size() twice per pass for incbin. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test/incbin.data')
-rw-r--r--test/incbin.data2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/incbin.data b/test/incbin.data
new file mode 100644
index 00000000..40f9d947
--- /dev/null
+++ b/test/incbin.data
@@ -0,0 +1,2 @@
+This is the wrong line of text.
+This is the right line of text.