Mahaveer made a proper analysis of the existing assembly code, carefully ascertaining critical timing requirements and bottle-necks in performance.