Thank you everyone for answering my question!
I think i might consider buying a new computer for video editing. I can’t afford a new macbook so i was thinking about buying a mac mini while keeping my macbook for general usage and making notes at the university .A mac mini would be more affordable for me than a new macbook. My only problem is that most of the mac minis have HDDs instead of SSDs. So would it be slow too with and HDD even with a better processor and more ram? Is HDD the main source of the problem that slows down the program?