title: Parallel Parsing C++
body: <p>I want to do something(strange) in C++ with some major idea as below:</p>
  
  <ol>
  <li>Receive a String of commands (SCPI commands) used to control instruments. Could receive in vector or buffer.</li>
  <li>Parse the string and extract individual commands (if the string contains multiple commands)</li>
  <li>Parse the individual commands to extract the mnemonics and arguments (elements of a SCPI   command).</li>
  <li>Match the Mnemonics with an already available Parser Table</li>
  </ol>
  
  <p>The funny thing is I already have a working solution but it's so slow when it comes to batch processing/parsing of commands.</p>
  
  <p>I am looking to do it in a way that the overhead decreases. One idea I have is to move from SERIAL to MULTITHREADED approach (like doing different stuff as mentioned above in different threads and utilizing the CPU cores to a maximum).</p>
  
  <p>I would therefore, need suggestions and tips on how and where to start ?</p>