Skip to content

Commit

Permalink
- attempt to reduce memory usage during project loading a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
owagner committed Apr 4, 2015
1 parent 1e9f3fb commit efc1dd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void loadETS4Project()
}
for(GroupAddressInfo gai:gaTable.values())
gai.createTranslator();
L.info("Group address table: "+gaTable);
L.config("Group address table: "+gaTable);
}
catch(Exception e)
{
Expand Down Expand Up @@ -232,6 +232,7 @@ private static void storeGAInfo(String address,String name,String datapointType)
private static void processETS4ProjectFile(ZipFile zf, ZipEntry zep) throws ParserConfigurationException, SAXException, IOException
{
DocumentBuilderFactory docBuilderFactory=DocumentBuilderFactory.newInstance();
docBuilderFactory.setCoalescing(true);
DocumentBuilder docBuilder=docBuilderFactory.newDocumentBuilder();
Document doc=docBuilder.parse(zf.getInputStream(zep));
NodeList gas=doc.getElementsByTagName("GroupAddress");
Expand Down

0 comments on commit efc1dd6

Please sign in to comment.