Building Android-x86 requires beefy pc and it took 1-2 hours to compile(depends on hardware),
This is misleading information, Only the beefiest PCs can even build in one hour.
And there are more factors to be considered like disk space, network.
For instance my friends i5 3rd gen desktop (HDD) took more than 5 hours (he cannot remember exact time) to compile Android x86 nougat. It takes 8+ hours on 16 gb ram for android 9. But according to some guys, It took them 12+ hours to compile the whole thing. Some says, they turned on their laptop for almost 1 day whole to do so.
6 core E5 xeon with 128GB of RAM and 1TB nvme 970 evo will get some good build time but it still takes over an hour on nougat and over two on pie, googles 72 core machines with 64gb ram take 40 minute while 6 core machine take 3 hours in contrast.
Next You need high bandwidth, nougat source is around 30gb while pie source over 40gb, anrroid 11 source surpassing 60gb. Disk space is most important, it take 100gb for unpacking (this also depends on android version), be prepared for another 100gb+ intermediates as well Atleast keep an empty 250 gb SSD.
Disk speed also important, while hard drives can have speeds of 100mb/s they are not fast to respond, building on HDD is painfully slow. its rapid read writes of an SSD but not the speed that makes the difference, buy a used 250gb ssd (available for cheap) if you are building AOSP.
As usual, patience is the key, building a ROM is a time consuming but rewarding task, im not saying you to avoid doing, you are interested in android development.
For laptops check this for compiling at low temperatures wiki.archlinux.org/title/Laptop_Mode_Tools