logoalt Hacker News

hyperionultratoday at 12:32 PM1 replyview on HN

~3% performance gains. I didn’t understood part about $this.


Replies

rererereferredtoday at 1:11 PM

If the closure doesn't use $this (an instance of the current class) then it doesn't need to store a reference to it, which also skips the bookkeeping from the garbage collector.