← Back to team overview

kicad-developers team mailing list archive

Re: RICHIO performance - 3 to 30 times slower than std::ifstream

 

On Sat, Feb 18, 2017 at 1:08 AM, Nox <noxfiregalaxy@xxxxxxxxx> wrote:
> What about wxFFileInputStream instead of wxFileInputStream?
>

wxFFileInputStream appears to be about 5-6 times faster than
wxFileInputStream, but that's still much much slower than RICHIO or
std::ifstream.

$ qa/io_benchmark/io_benchmark /tmp/all.lib 2
IO Bench Mark Util
  Benchmark file: /tmp/all.lib
  Repetitions:    2
std::fstream              317858 lines, acc: 25103384 in 16 ms
std::fstream, reused      317858 lines, acc: 25103384 in 16 ms
RICHIO                    317858 lines, acc: 25103384 in 91 ms
RICHIO, reused            317858 lines, acc: 25103384 in 90 ms
New fstream IO            317858 lines, acc: 25103384 in 19 ms
New fstream IO, reused    317858 lines, acc: 25103384 in 19 ms
wxIStream                 317858 lines, acc: 25103384 in 3558 ms
wxIStream, reused         317858 lines, acc: 25103384 in 3429 ms
wxFFIStream               317858 lines, acc: 25103384 in 589 ms
wxFFIStream, reused       317858 lines, acc: 25103384 in 602 ms


Follow ups

References