Mau Aplikasi Gacor? Wajib Ngerti Value Type
Mau Aplikasi Gacor? Wajib Ngerti Value Type! (Go vs Java Valhalla)Object yang kita bikin itu disimpan di mana, dan siapa yang bersihin nanti? Kalau jawabannya Heap, Garbage Collector yang harus kerja. Makin banyak object kecil, makin sering GC jalan, makin gampang muncul latency spike.
Di video ini kita bahas cara paling ampuh mengurangi beban GC: bukan tuning GC, tapi TIDAK bikin sampah sejak awal — lewat value type, object yang boleh hidup di Stack dan hilang otomatis tanpa mampir ke Heap.
Go sudah punya ini lewat Escape Analysis. Java lagi menuju ke sana lewat Project Valhalla (JEP 401).
Hasil demo Go-nya, beban kerja identik 10 juta object, cuma beda
"return *Point" vs "return Point"
Source code demo
https://github.com/ProgrammerZamanNow/demo-value-type
TIMELINE
========
00:00 Pendahuluan
01:03 Object Disimpan Di Mana
04:04 Stack vs Heap
06:16 Garbage Collector
08:01 Value Type
10:19 Escape Analysis
12:31 Contoh Kasus
24:00 Java Selalu Pake Heap
24:49 Project Valhalla
27:37 Bukan Cuma Go dan Java
28:24 Kesimpulan
Menurut kamu, Java bakal "nyampe Valhalla" tepat waktu? Komen ya!
#golang #java #programmerzamannow #garbagecollector #valuetype Receive SMS online on sms24.me
TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.
Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.
Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.
TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.
Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.
@YouTubeReaderBot allows you to subscribe to Youtube channels.
By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.
Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.
Look for new videos or channels and share them with your friends.
You can start using our bot from this video, subscribe now to Mau Aplikasi Gacor? Wajib Ngerti Value Type
What is YouTube?
YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.