There are lots of internal, repetitive validation done over and over. Also lots of repeated lookups and package loading/attaching. Should be room for memoization.
profvis::profvis() says that we spent most (> 95%) of the time in DNAcopy::segment()* so not much we can do in PSCBS. (*) ... which in turn spends the majority of its time in native Fortran code.
There are lots of internal, repetitive validation done over and over. Also lots of repeated lookups and package loading/attaching. Should be room for memoization.
Run time profiling.