avatar
g*c
2
一个type有一百个level,就是说parent和grandparent有100个level
一个type有两个level
这两个type的performance会怎样
我回答是create是perf有差别,用起来没差别
然后面试官就提到了CPU L1 L2 cache和pointer jump,我想了一下,回答说因为都是
Derived type,所以用起来还是没差别。
不知道有没有miss了什么?请高人指点。多谢!
avatar
h*s
3
请问申请EB1a至少需要多少citation?100够吗?
推荐信找律师写好吗?
另外,求推荐一些不错的律师。
谢谢~
avatar
m*m
4
me,me, 要多少?
avatar
j*j
6
隔壁前两天还有带虫奶粉半罐出售呢

【在 j*****e 的大作中提到】
: 麻烦再pm一下 谢谢
avatar
g*c
7
应该是证明了我答的没错

many
vs

【在 x*****z 的大作中提到】
: http://www.learncpp.com/cpp-tutorial/125-the-virtual-table/
: So it looks like cache performance could be different, depending on how many
: vtable have to be accessed. Like 100 functions implemented in 100 levels vs
: in 2 levels. Not sure tough.

avatar
g*c
8
多谢,应该是证明了我答的没错

many
vs

【在 x*****z 的大作中提到】
: http://www.learncpp.com/cpp-tutorial/125-the-virtual-table/
: So it looks like cache performance could be different, depending on how many
: vtable have to be accessed. Like 100 functions implemented in 100 levels vs
: in 2 levels. Not sure tough.

avatar
r*0
9
I may think you (LZ) are wrong. With the 100 levels, the instruction cache
won't work well for prefetch. The instruction stream prefetch usually works
at PC incr or PC decr two directions. But if the derived type pointer
chasing to 100 different target, I think the cache performance will drop.
Please update if you figure out the answer.

【在 g*c 的大作中提到】
: 多谢,应该是证明了我答的没错
:
: many
: vs

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。