discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
977 stars 236 forks source link

make Part::$http property dynamic only when needed #1156

Closed SQKo closed 1 year ago

SQKo commented 1 year ago

Not All Part classes needed the http client stored as property, this PR makes it optional that only the Part classes that needs the http client. While this add overhead to the getter, this in hope reduces memory by removing unused property.

So far there is no significance difference, testing it with D.PHP bot for atleast 24 hours.

SQKo commented 1 year ago

There was no significance change, so I'm closing this