Thursday, August 16, 2018

Optimize code C/C++

If you are using linux: use getchar_unlocked() and putchar_unlocked() for taking fast single character I/O.
In Windows the equivalent is getchar() and puchar() repectively



Resources:
[1] fast input/output https://ideone.com/BrsDz4


Enteprise solutions:
[1] http://www.fastformat.org/

No comments:

OS Emulation on Ubuntu 20

    sudo apt update && sudo apt install qemu-system-x86   # Create a 1GB disk image   qemu-img create -f qcow2 win95.qcow2 1G qemu-i...