IDIOMS

on the fly

(idiomatic) Spontaneously or extemporaneously; done as one goes, or during another activity.

Example:   Jones caught the ball on the fly‎
  The software program has a table of values for some results, but calculates others on the fly.