Efficient computation of ECO patch functions