Skip to content

after_dispatch memory leak (sort of) #2064

Answered by kraih
RastislavHudak asked this question in Q&A
Discussion options

You must be logged in to vote

Accessing the response content via $c->res->json results in an expensive read+JSON parsing operation, and stores the resulting data structure in $c->res. That's not a real leak, but could be perceived as one if the data structures are large enough.

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RastislavHudak
Comment options

You must be logged in to vote
2 replies
@kraih
Comment options

kraih May 5, 2023
Maintainer

@jberger
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants