Export as Midi file takes a very very long time

When exporting track or tracks as midi file , it works but takes a very very very long time

Patrick