• A
    ripgrep/printer: fix small performance regression · 004bb356
    Andrew Gallant 提交于
    This commit removes an unconditional extra regex search that is in fact
    not always necessary. This can result in a 2x performance improvement in
    cases where ripgrep reports many matches.
    
    The fix itself isn't ideal, but we continue to punt on cleaning up the
    printer until it is rewritten for libripgrep, which is happening Real
    Soon Now.
    
    Fixes #955
    004bb356
printer.rs 29.0 KB