Finally, we can benchmark the current approach against the LDC approach on a per-Method basis.  The LDC approach may well be doing more work per Method, so it's a tradeoff to determine whether deferring that work is a win.

By this last bit, I mean JMH'ing:

    Method m1() {
       return Class.forName("java.lang.Object").getMethod("equals", new Class[] { Class.forName("java.lang.Object") });
    }

vs

    Method m2() {
        return bootstrap(... constant bootstrap args for above ...)
    }


Reply via email to