Hi Rui, On 25 February 2012 15:39, Wang Rui <[email protected]> wrote: > I wonder if we could make use of some multi-processing methods > for optimization, such like OpenMP, or just leave a programming interface > here for others to speed up the byte swapping process if required.
My expectation is that byte swap will only be done in exceptional cases - where data is created on one platform and then read on another, and will be a pretty lightweight cost relative to IO and won't be a time critical to rendering so... all together there is very little reason to put alot of effort into optimization/multi-threading of byte swapping. The most bang for out back with optimizating byte swapping will be byte swapping a whole block at once rather than byte by byte, but even then it's reading a whole block at once which is the most important aspect to performance. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
