The role of compressibility in energy release by magnetic reconnection