A Novel Approach to Eliminate the Dead Code and Change the Looping Structure for Optimizing the Code

Main Article Content

Tulshihar Patil, Shashank Joshi, Sagar Ganapati Mohite, Rahul Desai, P V Londhe, Pramod Jadhav, Milind Gayakwad

Abstract

This article presents OptiCode, a complicated programming instrument that utilizes circle invariant code portability and dead code decrease, among other high-level code streamlining strategies, to develop code effectiveness further and reduce order time. Utilizing Circle Invariant Code Movement (LICM) and Conceptual Punctuation Trees (ASTs) for exact code examination, OptiCode productively distinguishes and kills repetitive code, as well as improves circle structures by eliminating 4.86% of dead code with a proficiency of 5.39% OptiCode outflanks other applications in correlation, as seen by its impressive arrange time reserve funds and amazing effectiveness appraisals. The outcomes show how significant these enhancement methods are for improving programming practicality and speed, furnishing designers with a valuable instrument for codebase streamlining.


Introduction: Code improvement alludes to the most common way of working on the effectiveness, execution, and nature of PC code without adjusting its usefulness or conduct. The goal of code advancement [29] is to produce code that executes quicker, consumes less memory, and has qualities, for example, further developed comprehensibility or practicality [5]. Some normal improvement strategies incorporate dead code end [11,30] and code invariant movement.


Objectives: To optimize the code by introducing the change in loop structure and removing the dead code.


Methods: Identification of the loops and unusful code is a challenging task. Once the problem is found, it is easy to mitigate the same. The dead-code optimization is introduced by identifying the non-performing, inaccessible code and deleting the same.


Results: The results of the experiment are satisfactory. The improvement in the performance by 6.96% is observed just by removing the approximately removing 5% code.


Conclusions: The identification and removal phase helps in the better performance of the code. The code optimization can save the space, time, human resources, and cost incurred during the development of the project. The improvement in the code also directly contributes into the efficiency of the ultimate code.

Article Details

Section
Articles