Text this: Cost improvement, work sampling, and short interval scheduling