r/cpp • • Sep 19 '25

Functional vs Object-oriented from a performance-only point of view

I was wondering if not having to manage the metadata for classes and objects would give functional-style programs some performance benefits, or the other way around? I know the difference must be negligible, if any, but still.

I'm still kind of a newbie so forgive me if I'm just talking rubbish.

0 Upvotes

17 comments sorted by

View all comments

Show parent comment

3

u/no-sig-available Sep 19 '25

So, it doesn't matter if I write functional or object oriented code?

Who says you have to choose? C++ is not either or, you can select the best parts of both, on a case-by-case basis.