lib: refactor to use mapping in cluster master
Cluster master message handler is basically doing the same thing for different message actions which can be avoided. Thus move to method mapping object and doing a single lookup to find the function to execute and it doesnot exists, skip the execution chain. PR-URL: https://github.com/nodejs/node/pull/36250 Reviewed-By:Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
28e9c100
Please register or sign in to comment