Re: [問題] vector VS array 速度比較
這是我測試的平台
==================
VC2010
==================
Debug Mode
dyanmic array vector
insert 48ms 651ms
access 32ms 653ms
Release Mode dynamic array vector
insert 16~17 ms 8 ms
access 0 ms 0 ms
看來 VS2010 的 STL 果然有進步 XD
下面這網址是 VS2010 STL 的 Developer Stephan T. Lavavej
對於 STL 的介紹 可以聽到蠻多有趣的東西^^
http://blogs.msdn.com/b/vcblog/archive/2011/01/07/rvalue-references-and-type-traits-video-introduction-to-the-stl-parts-9-and-10.aspx
ps. 目前我 windows 7 沒有用 GCC compile boost library
因此沒有辦法用 boost thread 不知道在 GCC 4.5.1 上跑起來結果如何
有人能提供數據嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.57.75.92
→
02/03 00:04, , 1F
02/03 00:04, 1F
推
02/03 14:58, , 2F
02/03 14:58, 2F
推
02/03 20:58, , 3F
02/03 20:58, 3F
→
02/06 04:17, , 4F
02/06 04:17, 4F
→
02/06 04:18, , 5F
02/06 04:18, 5F
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章