Apparently leonardo and UNO are very similar boards.
However, despite that both have the same flash memory size, Leonardo bootloader is considerably bigger than UNO bootloader (4KB vs 0.5KB).
what would be the reason? it is there any way to use smaller bootloader in leonardo?
Leonardo specs: https://www.arduino.cc/en/Main/ArduinoBoardLeonardo