Short topics in memory management
Posted Mar 7, 2007 16:50 UTC (Wed) by ibukanov
In reply to: Short topics in memory management
Parent article: Short topics in memory management
> It would make a persistent cache a bit tricky,
The trick is to use relative offsets instead of pointers in the data that goes into the mapped file. It has an extra benefit of a more secure code since it is easier to add bound-check for the offsets then checking the pointers.
to post comments)