devxlogo

November 5, 2019

Memory wasted by Spring Boot application

One of the widely wasted resources in the world today is: Memory. Due to inefficient programming, surprising (sometimes ???shocking???) amount of memory is wasted. We see this pattern repeated in several enterprise applications. To prove this case, we conducted a small study. We analyzed the famous spring boot pet clinic application to see how much memory it is wasting. This application has been designed by the community to show how the spring application framework can be used to build simple but powerful database-oriented applications. 

Transform a String into IntStream

Returning a stream of int zero-extending the char values from a String can be done via chars(): String str = “hello world”;IntStream chars = str.chars();