CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
795 stars 107 forks source link

chore: filter out pure whitespace with nested elements #221

Closed wooj2 closed 3 years ago

wooj2 commented 3 years ago

Proof of concept to filter out pure whitespace elements that are siblings of elements that are not pure whitespace.

wooj2 commented 3 years ago

I conducted a benchmark test of this approach vs the approach proposed in #222 --they seem to be equivalent in terms of performance. I think it makes sense to put this logic in the stack parser rather than KeyedStorage, so I'm closing this PR in favor of #222