Results 217 comments of Max Desiatov

This is a fantastic idea @acecilia. This probably could look even better with property wrappers and key path dynamic members in Swift 5.1 that allow addressing wrapped properties directly 👍

Hi @bitflying, unfortunately there's no way to handle it this way. This is a limitation of Apple's [`XMLParserDelegate`](https://developer.apple.com/documentation/foundation/xmlparserdelegate) that Foundation provides. I don't think there's a way to tell Foundation's...

Unfortunately, you have to implement `init(from decoder:)` and `encode` functions manually when using classes with inheritance, this is how `Codable` works. [This is also the case for `JSONDecoder`](https://stackoverflow.com/a/44605696/442427).

A workaround could be to use composition instead of inheritance: ```swift struct Person: Codable { let nameDetails: NameDetails let address: Address init(from decoder: Decoder) throws { let container = try...

Another option is to declare custom `Codable` conformance in your derived `MyAddress` class [as shown in this SO answer](https://stackoverflow.com/a/48523100/442427). But you still have to tell the decoder that you're decoding...

It's very hard to say without looking at the actual code. Do you have an isolated reproducible test case for this?

Hi @ThePredators, would you be interested to move this PR forward? I'm cleaning up the repository, and if this PR is abandoned and outdated, I'm inclined to close it. Thanks!

I'm closing this PR as abandoned, please feel free to reopen otherwise.

Hi @MartinP7r, thank you for reporting this. I think that splitting the file is the best way to make it faster short term. Also, if your XML has deep nesting,...

Thank you, that's super helpful! I think the last screenshot shows that the majority of time is spent in the `JMdict.retrieveDict` function, which then calls into `SettingsDictRow.body.getter`. I'd recommend looking...