do not run a gc after creating a plot

the gc often takes a second or more, which slows down the rendering a
lot
This commit is contained in:
ahr
2018-03-11 16:25:52 +01:00
parent caf400343e
commit 181fce805d

View File

@@ -88,8 +88,7 @@ public class PdbController implements HardcodedValues {
final String imageUrl = WEB_IMAGE_OUTPUT_PATH + "/" final String imageUrl = WEB_IMAGE_OUTPUT_PATH + "/"
+ result.getImageName(); + result.getImageName();
LOGGER.trace("image url: {}", imageUrl); LOGGER.trace("image url: {}", imageUrl);
System.gc();
return new PlotResponse( return new PlotResponse(
DataSeries.toMap(result.getDataSeries()), imageUrl); DataSeries.toMap(result.getDataSeries()), imageUrl);
} catch (final NoDataPointsException e) { } catch (final NoDataPointsException e) {