4 ms·
Yeap, but note that modern hardware also allows simplifying the code considerably, thus making it easier to avoid bugs. As an example, Turbo Pascal used to have
by badsectoracula 7y ago
Yeap, but note that modern hardware also allows simplifying the code considerably, thus making it easier to avoid bugs. As an example, Turbo Pascal used to have an addon called "Turbo Toolbox for Databases" (or something like that) that described using a simple database API to handle the customers of a dentist (that was an example) stored as B+ Tree indexed records on disk. This added a lot of complexity which was necessary due to the memory and disk limitations of the time.
Nowadays, the same "database" in Free Pascal can be achieved with a simple "array of TCustomer" type that keeps everything in memory and is loaded/written to disk with a couple of lines of code. Computers are so fast that unless you have every single citizen of a European country as a customer, you can simply perform linear searches directly in RAM without touching the disk. If anything this approach would also be much faster than if the Turbo Toolbox approach was used on a modern PC.
Of course a lot of software is very inefficient but TBH i do not ever expect this to change since people will always value features and convenience above performance - even when they do not use said features themselves.