title: predictBinomial method slow from Java code
body: <p>I am new to H2o. I am calling the predictBinomial method from a Java application and I am getting the correct results back, but it takes a long time to respond. Here is my scenario:</p>
  
  <p>I am exposing a web service method where I receive the name of the class (modelName) and using ClassLoader to load it (the idea is to allow business users to upload their compiled models to the server and be able to call the service without any development required):</p>
  
  <pre><code>ClassLoader classLoader = new URLClassLoader(
                  new URL[]{new URL(String.format("%s%s/", H2O_MODELS_URI, modelName))}, this.getClass().getClassLoader());
  </code></pre>
  
  <p>then I instantiate the raw model:</p>
  
  <pre><code>hex.genmodel.GenModel rawModel = (hex.genmodel.GenModel) classLoader.loadClass(modelName).newInstance();
  </code></pre>
  
  <p>Instantiate the wrapper:</p>
  
  <pre><code>EasyPredictModelWrapper model = new EasyPredictModelWrapper(rawModel);
  </code></pre>
  
  <p>Prepare the RowData (modelParameters received as service parameters):</p>
  
  <pre><code>RowData row = _h20ParametersMapper.map(modelParameters); 
  </code></pre>
  
  <p>Until here, everything goes smoothly, but when I call</p>
  
  <pre><code>BinomialModelPrediction binomialPrediction = model.predictBinomial(row);
  </code></pre>
  
  <p>It takes more than 10 seconds to return a response, which doesn't work for us. Do you see any way I could gain some performance? I am referencing the h2o-genmodel:3.18.0.3 library.</p>
  
  <p>Thanks!</p>