DEV Community

Discussion on: Demystifying Computers: RAM (Random Access Memory)

Collapse
lito profile image
Lito • Edited on

Maybe a better test can be creating 1.000 files into hdd, and 1.000 files into memory mount point with tmpfs. Then the script can use the index position as function argument to search by file number.

Also writing files in non continuous positions, in Java you can do it with RandomAccessFile stackoverflow.com/a/17525364