Skip to content

Reduce compilation time of Michelson.FailPattern

Ilya Peresadin requested to merge pva/fix-failpattern-comp into master

Problem: for some reason Michelson.FailPattern module compiles about 1 minute.

Solution: there are basically two candidates for optimisation: 'isTypicalFailWith' and 'modifyTypicalFailWith' functions. I've rewritten the former a bit what reduced compile time from 57s to 36s. I couldn't rewrite the latter easily (because types are a little bit compilcated) so I hope we will investigate it with scrutiny and figure out later.

Edited by Ilya Peresadin

Merge request reports