Rewrite learner performance

Will be handled in #118