Closed vanthuanqs closed 4 months ago
Hi
I am very happy for your cooperation
I wanted to do this request before, but I didn't get the chance. I will be very happy if you create this pull request.
Hi @vanthuanqs,
The announced feature is now available 🔥
First, I want to say thank you for awesome framework.
I have been working around the framework and I see that in
response()
function, whenever you call it, it create a new object fromResponse
class. I don't think it's really needed since in one life cycle of a HTTP request, we need only one object ofResponse
I create a
response_intance()
function:I also tested the performance:
and the result:
It's much more faster than create new object every time you call the function So I think we better create only one instance for these types of variables, example
Request
,Cache
, ...