You ever write code so inefficient you have to start complaining about the global allocation of RAM
you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 6 days ago (1 child)

malloc(18,446,744,073,709,551,615)

ULLONG_MAX from limits.h - so on a 64bit machine size_t = unsigned long long = uint64

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 6 days ago

    How about the equivalent malloc(-1)?

    Also, it's cheap to allocate memory if you never write to it. You should follow it up with memset() if you really wanna max out your Resident Set Size 🐏

  • source
  • parent