diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-21 13:13:23 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-21 13:52:36 +0100 |
commit | 821c61e9967e62fd81038e4b879c5452bffe2dfb (patch) | |
tree | 44d3eb0b5c47672e7b3ae2c6517fe1ef2a1109ce /src/expressions.h | |
parent | 3b33159a390722366a262517a6f96205a9df5c17 (diff) | |
download | sciteco-821c61e9967e62fd81038e4b879c5452bffe2dfb.tar.gz |
improved reading files by using memory-mapping
* file must be in primary memory for scintilla
* we cannot write to scintilla's buffer memory directly
* so mapping the file is best: in the best case it is not copied to primary memory and resides in kernel cache
* in any case, mapping to memory is faster than read()ing into primary memory
* copying from mapped virtual memory to scintilla buffer (via SCI_APPENDTEXT) is faster
than copying from primary memory
Diffstat (limited to 'src/expressions.h')
0 files changed, 0 insertions, 0 deletions