BitGarden

Recent Notes

  • hackintosh-opencore

    Apr 14, 2026

    • hackintosh

      Apr 14, 2026

      • mysql-gap-lock

        Apr 14, 2026

        See 640 more →

        Home

        ❯

        01 Source

        ❯

        2309

        ❯

        反射性能优化

        反射性能优化

        shareSep 04, 20231 min read

        • dev
        • todo
        • 揭秘反射真的很耗时吗,反射 10 万次,耗时多久
        • 反射技巧让你的性能提升N倍 - 掘金

        通过缓存中间操作、setAccessible(true) 的方式处理

        • Method Handles in Java | Baeldung

        通过 MethodHandles.loopup 来创建方法句柄,从而屏蔽安全检查

        todo

        可以之后确认一下,性能差距是多少


        Graph View

        Created with Quartz v4.5.0 © 2026

        • GitHub
        • Discord Community