Does functional programming take up more memory?

It depends on what you’re doing. With functional programming you don’t have to create defensive copies, so for certain problems it can end up using less memory.

Many functional programming languages also have good support for laziness, which can further reduce memory usage as you don’t create objects until you actually use them. This is arguably something that’s only correlated with functional programming rather than a direct cause, however.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)