Performance in running perl program from java spring controller -


i creating web application user enters query , have program in perl tag words in query. writing spring controller handle web request , call perl program java class. optimized way. there performance issue or time delay in calling perl program java?

well, depends on how calling perl program. when running perl script, perl interpreter starts, compiles script, runs it. means everytime run program spawn new process, read text file(s) containing program, interpret them, , results.

this not optimum.

to optimize process, write wrapper in perl perl script runs continuously in loop, waiting input java process via socket, named pipe, or file descriptor. way, process not have start on , on again. support greater concurrency, run pool of these.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -