I would assume 10 lines executed 10,000,000 times would be just fine. The limitation is due to memory constraints, due to internal data structures, and perhaps limitations in the G-code parser. A 10-line program would have a tiny parse tree representation.
Regards,
Ray L.