Adding parameters using the DOM methods will re-arrange / redraw the screen for each parameter, slowing it all down. Using innerHTML after building a string (in memory) to select is much faster (as Dr. Mall said). An alternative to both methods can be to create a documentFragment in memory, create the selected object in it, and finally add its contents to the existing DOM.
This is in addition to the question of how the user should process 5000 options of course (alas, the user is not programmed;)
source share