frontEnd_book icon indicating copy to clipboard operation
frontEnd_book copied to clipboard

a.b.c.d 和 a['b']['c']['d'],哪个性能更高?

Open hanyueqiang opened this issue 4 years ago • 0 comments

a.b.c.d 比 a['b']['c']['d'] 性能高点,后者还要考虑 [ ] 中是变量的情况 从两种形式的结构来看,显然编译器解析前者要比后者容易些,自然也就快一点。

hanyueqiang avatar Nov 25 '20 14:11 hanyueqiang