Designing APIs to have good performance - e.g. to execute quickly, and not over-consume various resources - is harder than optimizing a single in-house application. Here is few tricks to make it easier. Majority of these tricks has been invented while I was serving in the NetBeans Performance team. In case you are looking for other, not primarily API related performance advices, visit the netbeans:performance wiki.