共 50 条
Optimizing C++ vector expressions
被引:1
|作者:
Blinn, JF
[1
]
机构:
[1] Microsoft Res, Redmond, WA 98052 USA
关键词:
D O I:
10.1109/38.851757
中图分类号:
TP31 [计算机软件];
学科分类号:
081202 ;
0835 ;
摘要:
All this was pretty complicated, so a fair question to ask is, “Is this worth it?” The answer is: “Worth it to whom?” Every programming language has a gimmick. The gimmick of C++ is to put as much intelligence in the class libraries as possible, to make things as easy as possible for the users of those classes. In spite of the fact that there's a lot of complexity in the implementation of vector arithmetic, any user of the Vector class doesn’t see that complexity. They can create Vectors and perform arithmetic on them with ease and with confidence that the best possible code will be generated. That's the classical trade-off in C++: The needs of the many outweigh the needs of the few. © 2000, IEEE. All rights reserved.
引用
下载
收藏
页码:97 / 103
页数:7
相关论文