The Impact of Flyweight and Proxy Design Patterns on Software Efficiency: an Empirical Evaluation

The Impact of Flyweight and Proxy Design Patterns on Software Efficiency: an Empirical Evaluation

(IJACSA) International Journal of Advanced Computer Science and Applications, Vol. 10, No. 7, 2019 The Impact of Flyweight and Proxy Design Patterns on Software Efficiency: An Empirical Evaluation Muhammad Ehsan Rana1, Wan Nurhayati Wan Ab Rahman2 Masrah Azrifah Azmi Murad3, Rodziah Binti Atan4 Faculty of Computer Science and IT, Universiti Putra Malaysia 43400 Serdang, Selangor, Malaysia Abstract—In this era of technology, delivering quality There are three perspectives of quality attributes in Jim software has become a crucial requirement for the developers. McCall’s model, namely Product Revision, Product Transition, Quality software is able to help an organization to success and and Product Operations. Product revision is the ability or gain a competitive edge in the market. There are numerous enhancement of the ability for the software to change in quality attributes introduced by various quality models. Various accordance to user needs. Product transition on the other hand, researches and studies prove that the quality of the object- is the ability for the software to adapt itself to changing oriented software can be improved by using design patterns. The environments. Finally, product operation, which is the topic of main purpose of this research is to identify the relationships discussion of this research, is defined by the ability of the between the design patterns and software efficiency quality software to operate in accordance to the user demands and attribute. This research is focused on the impact of Flyweight without defects [1]. and Proxy Design Patterns on the efficiency of software. An example scenario is used to empirically evaluate the effectiveness Efficiency is “the state or quality of being efficient”, which of applied design refinements on efficiency of a system. The is the ability of a system or machine on “achieving maximum techniques to measure software efficiency and the results productivity with minimum wasted effort or expense” or the obtained for each solution are elaborated in detail. At the end of ability of a person “working in a well-organised and competent this research, comparative analysis is provided to show the way” [2]. However, in the context of software engineering, relative impact of each selected design pattern on software efficiency is the capability of a software application to fully efficiency. utilize the amount of resources that are required to perform a Keywords—Software efficiency; design patterns; flyweight task, the resources are inclusive of CPU time, storage, design pattern; proxy design pattern; measuring software transmission channels and others [3] [4]. efficiency; empirical evaluation of software As this research is aimed to evaluate the efficiency of software systems, authors are interested in “the ability of a I. INTRODUCTION system on achieving maximum productivity with minimum Efficiency is an essential quality factor that needs to be wasted effort or expenses”, which in a simpler form is considered by every software engineer while designing a processing most input into output with least amount of software program. A highly efficient software can give its resources. Since resource distribution to run software systems users a more pleasant experience when interacting with the are on average the same, more efficient software can usually software by being more responsive to the user’s actions and finish the same task in less amount of time. commands. To design and develop a highly efficient software, designers will have to minimize the system resources used by II. LITERATURE REVIEW the software to accomplish the tasks. Increasing the efficiency A. Importance of Efficiency in Contemporary Software of the software through the likes of lowering the process time and memory used by the software will make the users feel that Systems the software is more responsive as time used to process their With the development of increasingly advanced hardware, input and provide an output will be lower. The minimal usage most software, even inefficient, do not need to take full of memory will also decrease the time used to search for data, advantage of hardware resources except for a few types, such further lowering the processing time. as games. Due to the abundance of hardware resources, software development typically has low efficiency standards, Due to the competitive nature of software development, since the development of an efficient software is more developers would need to find ways to satisfy the users’ needs. expensive. Due to the higher cost of developing a more One of the problems of measuring software quality is that it is efficient software, the end product would also end up costing often intangible and abstract. Therefore, to combat the problem more. Moreover because of the fact that the end users prefer that developers usually face, Jim McCall and several other cheaper products and would usually not notice the subtle software engineers have presented their models to ensure difference in performance, commercial software would choose quality of developed software using available industry to enhance other aspects of the software rather than enhancing standards. the efficiency [5]. 161 | P a g e www.ijacsa.thesai.org (IJACSA) International Journal of Advanced Computer Science and Applications, Vol. 10, No. 7, 2019 Efficiency is often traded off with other quality attributes as and low latency network speed that are kept in data-centers that efficiency always comes last in terms of urgency and priority are owned by external parties (the cloud service providers such [6]. However, for some real-time systems such a banking as Microsoft Azure, Amazon Simple Storage Service et cetera.) system, efficiency is a critical factor in order for the system to [12]. Cloud computing is considered as the integration of both be proven useful and successful. Even though the weakness of Grid Computing and Cluster Computing paradigms. Cloud software efficiency is compensated by the advancement of computing architecture allows the software system to be easily hardware, efficiency is still pivotal as many users of software expandable and scalable due to the nature of the services are using various specifications of laptops, tablets and provided [13]. However, efficiency is one of the main reasons smartphones. On the other hand, battery life is an important why most enterprises begin to shift their services to be hosted factor to be considered for mobile devices. If a mobile device is through the cloud instead of having the servers hosted and constantly running inefficient software, it will occupy more managed manually within their company’s premises. resources and the battery will be consumed faster. Efficiency could be achieved in cloud computing paradigm through shared resource pooling which improve data storage A case study by [7], depicts the fact that complex systems and processing power, for example the service providers such as banking systems that require real time interaction dynamically assign computing resources to multiple consumers between multiple actors are difficult to implement as issues only when needed, hence maximum utilization of computing such as efficiency and reliability arises in the process of resources could be achieved [14]. Also, the amount of designing and actually producing the system. Furthermore, computational power or storage could be increased or introduction of the system over a large geographical area decreased at any point of time based on the amount of (inclusive of rural areas) requires even more attention towards resources that will be needed by the software application; efficiency as data has to be transmitted, received, and synced hence it does not waste computing resources and at the same among all nodes within the network in real time. The same time allows consumers to save cost. Due to the flexibility, could be seen in Healthcare Systems which poses emphasis on consumers can ensure that optimum efficiency is reached in efficiency as the equipment which are connected using Internet order to provide end-users with a system that runs with high of Things (IoT) have to provide real-time response for performance. Through cloud computing architecture, notification purposes when the monitored patient’s condition is consumers do not have to worry with concerns on hardware near or in emergency level [8] and serious implications could issues and can pay full focus in development of software. happen when the system fails to extend immediate feedback to the target audience (in this case, the nurses and the doctors) for B. Methods to Improve Software Efficiency assistance. 1) Code optimization: In order to achieve higher Efficiency is becoming more important in software efficiency in software applications, the developers of the applications that uses emergent technologies as it emphasize on system should be able to fully grasp and understand how using fewer resources to achieve better results, saving codes function at an operating system level and optimize the computational time and storage. The importance of efficiency codes to enhance computing resource utilization as area of can be seen through telecommunication software applications slowness could only be identified through knowledge and such as Skype, WhatsApp or Facebook Messenger which experience in dealing with system related matters. For provides video or voice calling services through wireless networks. In the context of Skype, a study that was done by [9] instance, declaring cached reference of objects that is have shown that the video quality of Skype calls is greatly frequently used as a local variable could greatly help in affected by the efficiency of Skype’s transmission and reducing the processing power needed to complete a task [15]. encoding algorithms as well as utilizing the bandwidth The diagram represented by Fig. 1 below shows the actual resource provided by the targeted machine itself. Similarly, implementation of cached memory. within the healthcare sector, through integration of IoT, In Fig. 1, the code snippet on the left is the initial surgeons are able to perform telesurgery on patients without implementation of the code without using cached memory.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us