How to make your program FASTER!!!

Revision en1, by Meron3r, 2024-02-01 13:42:51

Everyone wants to make there code FASTER but there is lots of simple solution. the first and most simple one is this:

std::ios::sync_with_stdio(false);

What this does is that usually cout is synced with stdio. so if we set it to false it will make the code slightly faster

Also you can set cin.tie and cout.tie to NULL like this:

cin.tie(NULL);
cout.tie(NULL);

Which will also make it alittle bit faster.

Tags #makecodefaster

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Meron3r 2024-02-01 13:42:51 483 Initial revision (published)