w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Would Java annotation impact runtime performance?

Yes, the annotations add a couple of milliseconds at run-time. Once the program is running, however, there will be no additional overhead. Before you optimise, it is always a good idea to run the program to check if performance speed is even an issue - if it ain't broken, don't fix it.

If the program is running too slowly, I would wager that the bottleneck isn't the annotations. To optimise it you should write some benchmarking code to find where the bottleneck actually is and optimise the slowest part. Your colleague would better off saving time by running everywhere and eating his food raw than optimising his annotations.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.