I have no reason for this, but I feel that if you are writing some kind of non-trivial program, the amount of space occupied by your "real" data will significantly reduce the amount of space occupied by a few additional definitions of the function as a class.
In other words, I would not worry about that.
source share