FasterXML / jackson-core

Core part of Jackson that defines Streaming API as well as basic shared abstractions
Apache License 2.0
2.27k stars 799 forks source link

Optimize handling of `JsonPointer.head()` #1328

Closed cowtowncoder closed 1 month ago

cowtowncoder commented 2 months ago

(note: this is a placeholder for reported but not verified performance concern)

Looks like implementation of JsonPointer.head() could be problematic for deeply nested pointer instances: and while this is unlikely to be of general security concern, it could be problematic for legitimate use. And as per comments in class, optimization already considered earlier... so let's see how easy it's to do.