A question about event functions and memory usage

@dthecoolest @frrazers
Something I forgot to mention is that I did a test using gcinfo() before I made this topic both with and without using a task.wait() before printing the result and in all cases the result was equal to 83, although I’m unsure as to the accuracy of the result of this test

Here’s how I did the test:

local Player = game:GetService("Players") Player.PlayerAdded:Connect(function()	print(true) end) print(gcinfo()) 
local Player = game:GetService("Players") local function onPlayerAdded()	print(true) end Player.PlayerAdded:Connect(onPlayerAdded) print(gcinfo()) 
local Player = game:GetService("Players") Player.PlayerAdded:Connect(function()	print(true) end) task.wait() print(gcinfo()) 
local Player = game:GetService("Players") local function onPlayerAdded()	print(true) end Player.PlayerAdded:Connect(onPlayerAdded) task.wait() print(gcinfo()) 

I’ll add a link to this comment on the topic as well