RamonUnch / GreenPad

Fork from roytam1 fork from original GreenPad
21 stars 0 forks source link

Improve writing performances #112

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago

Add FileW::WriteCN() that do not check for flushing Add FileW::NeedSpace() to manualy flush if needed making sure enough space remain at the end of the buffer. Unroll some loops, (huge speed up in some cases) re-order some branches so that high/low surrogate checks and calculations are done after other simpler checks that will occur more often.