Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6016

Java • Re: Enhancing JAVA performance

$
0
0
Modern Java runtimes are Just In Time compilers. Not interpreters.
Indeed. However compiling at run time takes time. Also there is all that garbage collection going on. All in all I found Java unsuitable for time critical systems.
The standard Java "List" object isn't a linked list of objects. (LinkedList is a special type of generic List you can use if that would be a better choice for your use.) Most people use an ArrayList when they use a List. It's backed by one or more Arrays, so is much more memory efficient than a LinkedList - but less efficient than an Array - but handles insert/remove much easier than an Array.
Ah, OK. Sounds good.
As usual, knowledge of the environment you are working in is important.
Very true.

Statistics: Posted by Heater — Fri Dec 29, 2023 11:35 pm



Viewing all articles
Browse latest Browse all 6016

Trending Articles