C++: repeated call of system()
c++, c++11
Solution
The Java VM is not cheap to start running, and it's likely that its initialization is eating up the lion's share of your time. Luckily, the functionality of `javap` is available directly through Java code. I suggest that you write a small Java application which, while similar to `javap`, does with one invocation what you would otherwise need thousands for. (Though... maybe you could already use just one? javap will take multiple class files, after all...)
Problem
I need some help with external program call from c++ code. I have to call `javap.exe` (from JDK package) from my program many times (probably more than 100), but call `system("javap.exe some_parameters")` is extremely slow. It's work so good for one set of parameters but repeated calls of `system()` not acceptable. I think it is only because of costs to access the hard disk and application run (but I'm not sure). What can I do for better performance? Can I "save `javap.exe` in RAM" and call it "directly". Or may be somebody knows how can I get java-class description and methods signature without `javap.exe`?