Wireless Sensor and Actuator Networks are becoming attractive also for industrial applications, since recent standardization efforts have introduced significant improvement to reliability and deterministic communication delays. In this context, IEEE 802.15.4e is widely considered the major improvement, introducing many enhancements to the original IEEE 802.15.4 standard aimed at supporting critical applications. Among the new defined MAC protocols, Deterministic and Synchronous Multi-channel Extension (DSME) represents the most suitable option for applications with time-varying requirements. In this paper, an analysis of the IEEE 802.15.4 DSME MAC protocol during network formation is presented. The goal is to study the protocol performance and propose solutions to reduce the network formation time, improving energy and resource efficiency. To carry out the performance evaluation, DSME has been fully implemented in Contiki OS, an actual operating system for sensor nodes. The study has highlighted issues and inefficiencies in the network formation process, allowing to consequently propose effective solutions. In particular, it is proposed a set of guidelines for DSME configuration to the original MAC protocol that are proved to increase significantly the network formation efficiency.