/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Pragtical: Practical and pragmatic code editor
(pragtical.dev)
255 points
rd07
| 2 comments |
20 Aug 24 07:15 UTC
|
HN request time: 0.411s
|
source
Show context
BigParm
◴[
20 Aug 24 09:28 UTC
]
No.
41298338
[source]
▶
>>41297609 (OP)
#
How does it occupy 30MB ram but 5MB disk space does it grow
replies(2):
>>41298459
#
>>41298681
#
1.
a-french-anon
◴[
20 Aug 24 09:49 UTC
]
No.
41298459
[source]
▶
>>41298338
#
void *p = malloc(30 * 1024 * 1024);
replies(1):
>>41420245
#
ID:
GO
2.
BigParm
◴[
01 Sep 24 20:46 UTC
]
No.
41420245
[source]
▶
>>41298459 (TP)
#
Makes sense. It's intuitive when you specify a number of bytes. I have myself been allocating memory using "new" so idk how my broken brain asked such a dumbass question.
↑