Improving performance by caching or delegate call?

前端 未结 4 925
孤街浪徒
孤街浪徒 2021-01-23 10:37

I am trying to improve performance in the code below and kinda know how but not sure which is the best approach. The first hit will take longer but subsequent hits should be qui

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-23 11:25

    I also had similar problem once - reflection is extreemely slow. I used caching, like you are planning and performance grow more than 10 times. It was never again be a bottleneck in performance.

提交回复
热议问题