I am using MapServer 6 and defining maps with mapfiles.
I have a page where 20 map compositions (~20*5=~100 layers) are possible by varing LAYER/DATA field and some classes of layers... So I can express each map by a mapfile (20 mapfiles) or I can put all layers in the same mapfile... This is the question,
What is better (have better performance), many mapfiles with few layers each, or one mapfile with all (many) layers?
If the answer need some context... I am accessing Mapserver by this URL, where layer names (L1a,L2b) and mapfile name (MFc.map) can vary,
example/cgi-bin/mapserv?LAYERS=L1a,L2b,L3,L4,L5,L6&MAP=MFc.map&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=epsg:29183&WIDTH=612&HEIGHT=516&BBOX=....
The combinatory is:
Many mapfiles (c=1..20, a=1, b=1..5): a templating software generated 20 mapfiles, each with ~5 layers.
One mapfile (c=1, a=1..20, b=1..5): a templating software can generate a mafile with all ~200 layers.