Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7]
  Print  
  Once again! fast MappedObjects implementation  (Read 15980 times)
0 Members and 1 Guest are viewing this topic.
Offline Spasi

JGO Ninja
***

Posts: 589
Medals: 26


Molon Lave


« Reply #180 on: 2011-07-24 18:49:09 »

I'm well aware of what the major use for this library is. For my particular needs I don't even care about Java computation performance, I do almost everything with OpenCL. I just wanted to share my findings for people that may see this library and think all their performance problems are magically gone, just because there's no bounds checks with Unsafe or whatever. Since computation has to happen eventually, there may be a temptation to do it on mapped data, which may lead to the performance gotchas I described.
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8089
Medals: 96


Eh? Who? What? ... Me?


« Reply #181 on: 2011-07-24 18:58:32 »

Indeed: but look at it from this perspective - using mapped objects is so much vastly more simple and less error-prone than directly peeking and poking into ByteBuffers that simply getting it to roughly the same speed is a massive win. If by some miracle it goes twice as fast or whatever - that's just gravy!

Cas Smiley

Pages: 1 ... 5 6 [7]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.067 seconds with 20 queries.