multi_array performance
Hi,
I am very new in using Boost library.
I start replacing row memory array with 'multi_array' class template but the
performace slow down a lot.
Running this test program...
//begin------------------
#include "windows.h"
#include <iostream>
#include "boost\multi_array.hpp"
using namespace std;
using namespace boost;
int main()
{
const size_t DimX = 2000;
const size_t DimY = 1500;
const size_t DimZ = 1;
multi_array
... the output (using vc++ in release mode with no optimization) is
Multi_array: 1663 Pointer....:70
I've nothing helpful to say about multi_array, but how do the timings compare when you use the maximum speed optimizations? Much STL/Boost code is written on the assumption that lots of things will be optimized away. Darren
"Darren Cook"
... the output (using vc++ in release mode with no optimization) is
Multi_array: 1663 Pointer....:70
I've nothing helpful to say about multi_array, but how do the timings compare when you use the maximum speed optimizations? Much STL/Boost code is written on the assumption that lots of things will be optimized away.
Darren
I make a test setting vc++ 7.1 with "Maximize Speed /O2" optimization with these results: Multi_array: 471 Pointer....:0 so the difference persists. Marco.
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
At 09:08 AM 7/2/2003, Marco Segurini wrote:
"Darren Cook"
ha scritto nel messaggio news:3F028EC9.8020208@dcook.org... ... the output (using vc++ in release mode with no optimization) is
Multi_array: 1663 Pointer....:70
I've nothing helpful to say about multi_array, but how do the timings compare when you use the maximum speed optimizations? Much STL/Boost code is written on the assumption that lots of things will be optimized away.
Darren
I make a test setting vc++ 7.1 with "Maximize Speed /O2" optimization with these results:
Multi_array: 471 Pointer....:0
so the difference persists.
That seems beyond what might be expected from an abstraction penalty. Have you looked at the code being generated to see where the added time is coming from? --Beman
Hello all, I am looking for a "good" serialization library for C++. While looking at the files in the yahoo repository, I found the Serialization6.zip, which basically contains a draft for a boost::serialization library. And my question is: Has anyone tried it? Is it good? On the same topic, does anyone know a serialization library worth recommending? Thanks a lot Alexis --------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger [Non-text portions of this message have been removed]
What do you mean exactly by serialization library ? You have a look at http://iobind.sourceforge.net (of course i'm developping it :) At 18:07 2/07/2003 +0100, you wrote:
Hello all,
I am looking for a "good" serialization library for C++. While looking at the files in the yahoo repository, I found the Serialization6.zip, which basically contains a draft for a boost::serialization library. And my question is: Has anyone tried it? Is it good?
On the same topic, does anyone know a serialization library worth recommending?
Thanks a lot
Alexis
--------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor ADVERTISEMENT
Info: <http://www.boost.orghttp://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.plhttp://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
----------------------------------------------------------------------------------- Jonathan de Halleux, Research Assistant Center for Systems Engineering and Applied Mechanics (CESAME) Universite catholique de Louvain Batiment Euler , Av. Georges Lemaitre, 4 Tel : +32-10-47 2595 B-1348 Louvain-la-Neuve Belgium E-mail : dehalleux@auto.ucl.ac.be ----------------------------------------------------------------------------------- [Non-text portions of this message have been removed]
If u look for serialisation API, it could be for 2 main reasons :
- Tramsmit object accross network
- Save it to make it persistant.
Perhaps take a look at ice http://zeroc.com . This is simpler than corba
and said to be already utilised successfully in massively parallel games.
Alexis Gatt
participants (6)
-
Alexandre Carsac
-
Alexis Gatt
-
Beman Dawes
-
Darren Cook
-
Jonathan de Halleux
-
Marco Segurini