Changeset 6211 for branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs
- Timestamp:
- 05/17/11 10:59:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs
r5445 r6211 75 75 try { 76 76 iterator = handlers[reader.Name].Invoke(); 77 } 78 catch (KeyNotFoundException) { 77 } catch (KeyNotFoundException) { 79 78 throw new PersistenceException(String.Format( 80 79 "Invalid XML tag \"{0}\" in persistence file.", … … 176 175 } 177 176 return typeCache; 178 } 179 catch (PersistenceException) { 177 } catch (PersistenceException) { 180 178 throw; 181 } 182 catch (Exception e) { 179 } catch (Exception e) { 183 180 throw new PersistenceException("Unexpected exception during type cache parsing.", e); 184 181 } … … 196 193 return Deserialize(file); 197 194 } 198 } 199 finally { 195 } finally { 200 196 TimeSpan end = System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime; 201 197 Tracing.Logger.Info(string.Format( … … 226 222 XmlParser parser = new XmlParser(reader); 227 223 Deserializer deserializer = new Deserializer(new TypeMapping[] { }); 228 return deserializer.Deserialize(parser); 229 } 230 } 231 catch (PersistenceException) { 224 return deserializer.Deserialize(new AsyncBuffer<ISerializationToken>(parser)); 225 } 226 } catch (PersistenceException) { 232 227 throw; 233 } 234 catch (Exception x) { 228 } catch (Exception x) { 235 229 throw new PersistenceException("Unexpected exception during deserialization", x); 236 230 } … … 258 252 XmlParser parser = new XmlParser( 259 253 new StreamReader(zipFile.GetInputStream(data))); 260 object result = deSerializer.Deserialize( parser);254 object result = deSerializer.Deserialize(new AsyncBuffer<ISerializationToken>(parser)); 261 255 zipFile.Close(); 262 256 return result; 263 } 264 catch (PersistenceException) { 257 } catch (PersistenceException) { 265 258 throw; 266 } 267 catch (Exception e) { 259 } catch (Exception e) { 268 260 throw new PersistenceException("Unexpected exception during deserialization", e); 269 261 }
Note: See TracChangeset
for help on using the changeset viewer.