-
Notifications
You must be signed in to change notification settings - Fork 1
API Method calling costs
Nico Hezel edited this page Aug 16, 2017
·
3 revisions
The javadoc of each API method provides a section where the estimated costs of the call is depicted and a reference to a faster option if exists is mentioned (e.g. use recordId() for blueprints instead of Records.id())
The costs are described by the amount and type of expensive java expressions, which will be executed in the worst case scenario once the method gets called.
legend
C = casting
B = branching
A = array read
P = polymorphism (megamorpic call sites)
M = hash map read
N = new object
e.g. 0C 1B 1A 0P 1M 0N
The order is sorted from cheapest to the most expensive cost.