6

My first cpp project takes 148GB ram. My mentor says it's okay till 50GB. God help me optimise this thing. I have started doubting everything. Int I = 0 also looks suspicious.

Comments
  • 1
    GB!? WAT? What the hell are you creating!?
  • 1
    Damn you use pcs with more than 16 GB Ram for developing ? O.o wtf
  • 7
    Did you build skynet or something?
  • 2
    When you use pointers in cpp, you have to clean up after you're done with the pointer; there's no automatic garbage collection. Not sure how you get anything to run, unless you are spooling it all to disk.
  • 0
    @Artemix auto i = 0 masterrace :P
  • 1
    @iAmNaN all the smart pointers and shit. But my mentor says ram is cheap. So load all the required database tables in ram. And query those instead of querying db as db is slow. But he is an intelligent guy. Knows what he is doing. Lets see what happens.
  • 1
    @donoskaro virtual machines. Around 200 GB RAM I guess. I'll tell exact numbers on Monday. But the fun part is there are 410 such instances🙂
  • 1
    You are scaring me for my embedded C project. I have 32MB of Ram...not easily accessible though, the FreeRTOS malloc is bugged :(
  • 0
    @Sainathl well, yes, but some DBMS are specifically designed to be loaded into memory, and others not so much. RAM may be cheap, but one should still optimize and make efficient use of it.
Add Comment