Meron3r's blog

By Meron3r, history, 11 months ago, In English

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.

  • Vote: I like it
  • -11
  • Vote: I do not like it

»
11 months ago, # |
  Vote: I like it +5 Vote: I do not like it

thanks!

»
11 months ago, # |
  Vote: I like it +18 Vote: I do not like it

cout.tie does nothing