Closed tim-ywliu closed 11 months ago
sounds legit, but let me have a closer look into codes, as I don't actually remember what was the idea behind calling ParseMultiIEs here TBH :sweat_smile:
I agree, in most real use-cases the child IEs are already parsed it seems, and your idea can improve performance. Can you work on it? Otherwise I'll do it in my spare time (with not-so-high priority).
Clarified how to handle grouped IEs efficiently in README. I will leave these <IE-Name>()
methods as they are for consistency/for specific purpose. What you proposed is implemented as ValueAsGrouped
.
Thanks!
I found many helper functions will ParseMultiIEs(i.Payload) directly even it was already parsed. Fox example:
I think it can enhance performance to add ChildIEs length checking to determine if this IE was parsed.
Or something I missed?