"Mechanical sympathy" and fast code

How predictability can deliver better performance

JAXenter Editorial Team
Mechanics image via Shutterstock

There are significant performance improvements to be made by writing software that works in harmony with underlying hardware, says technical problem solver Richard Warburton.

These days fast code needs to operate in harmony with its environment. At the deepest level this means working well with hardware: RAM, disks and SSDs. A unifying theme is treating memory access patterns in a uniform and predictable way that is sympathetic to the underlying hardware.

SEE ALSO: Top 10 easy performance optimisations in Java

For example writing to and reading from RAM and Hard Disks can be significantly sped up by operating sequentially on the device, rather than randomly accessing the data. In this talk shot at the JAX London 2014 cover why access patterns are important, what kind of speed gain you can get and how you can write simple high level code which works well with these kind of patterns.

Leave a Reply