Martin Pfundmair
Martin Pfundmair
Thank you for your quick response! I'll try and find out where all that time is spent. Probably towards the weekend, since it's a personal project I'm working on. I'm...
I've let it run for a while ```log 1.68 min 100.0% 0 s Japanese (1117) 1.68 min 99.9% 0 s Main Thread 0x58097 28.67 s 28.4% 28.67 s specialized _ArrayBufferProtocol._arrayOutOfPlaceUpdate(_:_:_:_:)...
I think you might have it backwards since in this view the call tree is inverted. Sorry I did not mention that, I used the settings as described in the...
Btw, all the `retrieveDict()` method does is: ```swift static func retrieveDict() -> JMdict? { guard let url = Bundle.main.url(forResource: "JMdict", withExtension: "xml") else { fatalError() } guard let data =...
Thank you and sorry for the late reply. > needed to make sure that order of elements is preserved when encoding. I'm not sure I fully understand. How does this...
```swift struct JMdict: Codable { var entries: [Entry] enum CodingKeys: String, CodingKey { case entries = "entry" } } struct Entry: Codable { var ent_seq: Int = 0 var kanjis:...
Thank you so much for the detail explanation! I think I understand now. Depending on the requirements of the model, essential context would get lost without keeping the order of...
Some information about entity tags: https://www.logicbig.com/tutorials/misc/xml/xml-entity.html#:~:text=Internal%20Entities%3A%20An%20internal%20entity,defined%20in%20an%20separate%20file. maybe relevant apple documentation: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412907-parser `parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:` https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1414803-parser `parser:foundInternalEntityDeclarationWithName:value:` This seems like it would be necessary to decode the entity shortcuts. relevant in case of...
I forked your project and wrote a test case that fails as expected: ```swift final class EntityTests: XCTestCase { let xml = """ &jd; """ struct Note: Decodable { let...
another (10 year old) [stackoverflow comment](https://stackoverflow.com/a/2444169/2064473) and 5 year old [radar](https://openradar.appspot.com/22358256) (also https://www.mail-archive.com/[email protected]/msg67796.html) states that `NSXMLParser` doesn't pick up on entities other than the standard ones and will just remove...