CPV in dialog: added to sample, perf improvements

@JakeWharton