• S
    Introduce new config option for mmap limit. · 77ccc5bb
    Shawn O. Pearce 提交于
    Rather than hardcoding the maximum number of bytes which can be
    mmapped from pack files we should make this value configurable,
    allowing the end user to increase or decrease this limit on a
    per-repository basis depending on the size of the repository
    and the capabilities of their operating system.
    
    In general users should not need to manually tune such a low-level
    setting within the core code, but being able to artifically limit
    the number of bytes which we can mmap at once from pack files will
    make it easier to craft test cases for the new mmap sliding window
    implementation.
    Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    77ccc5bb
config.txt 14.1 KB