N
N
nolouds2021-12-18 16:02:53
Java
nolouds, 2021-12-18 16:02:53

How often is the speed of a program measured, and how is it done in Java?

if you think you want to use a LinkedList, measure the performance of your application with both LinkedList and ArrayList before making your choice; ArrayList is usually faster.


This is a quote from the oracle documentation. Should programmers measure the speed of each method? If not, under what circumstances do they do it and how do they do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-12-18
@nolouds

As long as the speed of work suits, nothing needs to be measured.
Then the question arises "is it possible faster" - then the profiler (for example, this one ) is in hand and "alga".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question