• Dylan Smith's avatar
    richedit: Avoided searching for adjacent paragraphs through runs. · 5c91d535
    Dylan Smith authored
    When finding an adjacent paragraph, the next_para and prev_para pointers
    should be used because they are direct pointers, a constant time
    operation.  Instead I found some places in the code that searched through
    the general linked list to get to an adjacent paragraph, which is a linear
    time operation, depending on the number of rows and runs in between
    paragraphs.
    5c91d535
paint.c 44.7 KB