We're updating the issue view to help you get more done. 

Annotate simple argument checks with MethodImplOptions.AggressiveInlining

Description

The extra method call costs about 2ns per call. When inlined, this time can be reclaimed. Therefor, small argument check methods (not null, not empty, not null or empty) should be annotated for aggressive inlining.

Note that in a typical web application, about 1 million argument check calls are performed per run. The absolute performance gain is therefor still relatively small (~2ms in total). It does however help with reducing noise when doing performance tests.

Emitted code without inlining:

Emitted code with inlining:

Assignee

Marcel Holle

Reporter

Michael Ketting

Labels

None

Components

Fix versions

Priority

Normal
Configure