starandserpent / java-TerraServer

Terra - Voxel octree of chunks, made for Rituals of the old
MIT License
17 stars 2 forks source link

Volatile accesses and cache lines #22

Closed bensku closed 5 years ago

bensku commented 6 years ago

Unaligned volatile memory access must be hacked to work reliable, which Chronicle-Values does for ints and longs. For other data types this is not done; thus, unaligned access is not safe to use for them.

However, some of our data is indeed aligned, but Chronicle-Values does not know that. This might cause unnecessary performance loss and should be benchmarked.

Pawlost commented 5 years ago

This is probably not relavant anymore