No way this file is too big

I highly recommend you have a play with the godbolt compiler explorer https://godbolt.org/ It shows you exactly how a function is compiled into microcode (and thus the resulting size). Same goes for variables.

A video on compiler theory should also help: KEYNOTE: What Everyone Should Know About How Amazing Compilers Are - Matt Godbolt [C++ on Sea 2019] - YouTube

2 Likes