3 ms·
In 20 minutes you can read what mmap does and see that you you can map a file and copy it like memory. In another 20 minutes you can compile and run a medium s
by CyberDildonics 6y ago
In 20 minutes you can read what mmap does and see that you you can map a file and copy it like memory.
In another 20 minutes you can compile and run a medium sized program.
Neither of those is enough time for someone to go deep into something, but you can look up the brand new thing you're using and see where your bottlenecks are.
- rini17 6y agoBut without going deeper you are likely to have preconceived notions like "mmapping a gigabyte file into a memory actually uses a gigabyte of memory, oh noes!" I can totally see the thinking behind this case.
- CyberDildonics 6y agoI don't think an unsubstantiated general predication about people making a wild assumption has much to do with the point that nothing is going to protect people from performance pitfalls who don't learn the bare basics about what they are doing.
- rini17 6y agoBut they did learn the bare basics, enough to implement something somehow working. Or I don't get what you're trying to say?
- CyberDildonics 6y agoWho is 'they'? Is it still the made up future scenario? The bare basics of mmap on a file is that it maps the file into a processes memory space instead of copying it into memory.