• DocumentCode
    3368766
  • Title

    Functional Classes: Cost of Recursive Method Call in Java

  • Author

    Mäyrä, Hannu ; Rönkkö, Mauno

  • Author_Institution
    Univ. of Kuopio, Kuopio
  • fYear
    2007
  • fDate
    25-31 Aug. 2007
  • Firstpage
    31
  • Lastpage
    31
  • Abstract
    In this paper, we discuss the cost of functional classes design style. Functional classes merge both object-oriented and functional programming paradigms; a functional class is a class without variables. Because of this, the methods in functional classes are true functions. Functional classes design style aims at improving reliability and program correctness. However, resulting program code is not optimal when considering the performance. As the main contribution, we analyze here the performance of functional classes in Java. We study especially the cost of recursive method calls. As the case study, we analyze an implementation of the cartesian product operation in a lightweight data mediator. The analysis confirms that functional classes design style leads to implementations that make poor use of HotSpot. However, the analysis also indicates how to restructure a functional class to improve the performance.
  • Keywords
    Java; functional programming; object-oriented programming; program verification; remote procedure calls; software libraries; software reliability; Java recursive method calls; functional class design style; functional programming paradigms; object-oriented programming paradigms; program correctness; program reliability; Cost function; Java;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Advances, 2007. ICSEA 2007. International Conference on
  • Conference_Location
    Cap Esterel
  • Print_ISBN
    0-7695-2937-2
  • Electronic_ISBN
    978-0-7695-2937-0
  • Type

    conf

  • DOI
    10.1109/ICSEA.2007.35
  • Filename
    4299913