Could have been a case of a very heavy A340 rotating a long way down the runway and RYR not so heavy and knowing he was going to be airborne way before where the A340 rotated,and would be above the 340's flight path during the climb out - its called exercising one's discretion!!!