일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- mutable
- compiler
- workflow
- redis
- QueryDSL
- db
- AOP
- java
- immutable
- EC2
- kotlin
- git
- JPA
- 알고리즘
- Action
- rds
- Airflow
- build_test
- JUnit
- 사이드 프로젝트
- Github
- 토비의 스프링
- Spring
- string
- springboot
- CodeDeploy
- aws
- template
- Today
- Total
목록Java (2)
개발 일기
오늘 문뜩 궁금한 게 생겼다.. 분명 지나가다가 자바 X 버전 이상부터는 String += (opreator)의 성능이 향상되어 속도가 빨라져서 Builder를 쓰지 않아도 된다는 글을 본 거 같았다. 궁금한 김에 자료를 찾아보았는데.. https://schneide.blog/2009/02/23/about-string-concatenation-in-java-or-dont-fear-the/ About String Concatenation in Java or “don’t fear the +” When it comes to string concatenation in Java many people have almost religious views about performance and style. Sadly, ..
오늘 String과 StringBuilder의 속도 차이에 대해 검색을 하다 mutable , immutable의 대해 알게 되었다. 아래 링크의 정보를 참고하면 좋다. https://zetawiki.com/wiki/%EC%9D%B4%EB%AE%A4%ED%84%B0%EB%B8%94,_%EB%AE%A4%ED%84%B0%EB%B8%94 이뮤터블, 뮤터블 - 제타위키 다음 문자열 포함... zetawiki.com MutableClass 생성된 후 값의 내용을 변경할 수 있는 클래스다. ex ) String을 제외한 참조 타입 변수들 ImmutableClass 인스턴스가 생성된 후에는 값을 변경할 수 없는 클래스 ex) String 등등 Example Mutable 클래스의 예시 코드다 public class ..