I am scripting a NodeJS server which needs to hash user passwords, in addition to other pieces of data, prior to storing them in a database. Due to the mathematically intense process of creating secure hashes, and the large volume of hashing that will need to be done, I have chosen to code the hashing process in C.
My question is this: How much overhead am I adding by executing the hashing process coded in C via child_process.exec as opposed to creating a native addon for NodeJS?
I.E. every time a piece of data needs to be hashed I will need to call child_process.exec with the piece of data as an argument.