dosen't makes difference ?
which way is faster , calling the cpp code from stdin or loading it as a module in nodejs this is probably the proper way of doing your question if you wanna be accurate
actually I'd guess there will not be big diffs between both because the heavy shit is anyway done in cpp but if there is lots of data on the line sent and recieved that might make a noticable difference if there are diffs in between using stdin and loading it as a module
Обсуждают сегодня