IIRC barrel length was determined in 1900, bayonet length later. When generals with volley firing, massed and cavalry charges thinking were still alive and directing development.

Eg when transitioning from the SMLE/No 1 to No 1 Mk V/VI/no 4, barrel length certainly must have been considered.