Replies: 2 comments
-
我猜测是有加速的能力,但是查看lua的table实现,使用hash table和数组,速度上应该没有差距 |
Beta Was this translation helpful? Give feedback.
0 replies
-
重新理解了一下,因为有遍历所有配置统计的需求,所以使用values这个数组来存放所有配置 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
values_hash 被设计为<name,下标>的table,values保存具体配置,使用时先通过配置名称在values_hash获取下标,然后通过values获取具体内容,这样设计的原因是什么呢,相比直接将<name,配置>放在一起的好处的是什么
Beta Was this translation helpful? Give feedback.
All reactions