V
V
Vitaly2017-09-26 09:15:57
Java
Vitaly, 2017-09-26 09:15:57

Dynamic or static linking - what about efficiency?

The question is simple: does the dynamic linking of jar files affect the speed of the application, or is it better to link statically? The problem is this: the application is supposed to be extended with custom libraries at runtime, and there can be quite a lot of such small modules. If this causes visible problems with the speed of launching or, moreover, the operation of the application, it makes sense to enable the ability to rebuild the application on the user's side - in this case, this is permissible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
moh-mog-drinks, 2017-09-26
@moh-mog-drinks

No one bothers you to load dynamically linked pieces of code in advance.
In advance, even before their actual use is needed.
In general - there is such a term "profiling"
Run profiling and see where you really have brakes.
Maybe this is not at all on linking (it is very doubtful that linking was the fault),
but, say, when connecting to some external services (database, etc.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question