5 ms·
Yes, you could allocate it on the stack. I think back then (still?) a filename could be at most 260 characters, each encoded with 16 bits, so about 52k of stack
by ulrikrasmussen 6d ago
Yes, you could allocate it on the stack. I think back then (still?) a filename could be at most 260 characters, each encoded with 16 bits, so about 52k of stack allocation.
- wongarsu 6d ago52k on the stack is pretty significant, given Windows defaults to just 1MB stack size per thread