performance: optimize structures for 64-bit platforms
This commit reduced cpu cost time move, copy, create objects with changed structures.
This commit will improve performance on weak devices, but more tests or benchmarks are needed on different hardware configurations to find out real percentage score.
64-bit cpus and os have been around for a long time.
Structure fields change readable as possible from original code style.
Reference: https://en.wikipedia.org/wiki/Data_structure_alignment
This change was made thanks to Lainon's team from imageboards.