Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Very large binary file generated on compilation

Правка en1, от doubtforces, 2020-07-09 12:55:47

Hi!

I was coding the Segment Tree (Dynamic) in C++ by storing all the data of a node in a struct. While coding, I found that the following small piece of code generated a very large binary file on the compilation (32 MB). Even compilation time was a little longer than usual.

Code generating 32 MB binary file

However, while doing a slight change in the above code, the size of the binary file reduced to 20 KB (that's around 1600 times smaller).

Code generating 20 KB binary file

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en9 Английский doubtforces 2020-07-09 14:32:03 0 (published)
en8 Английский doubtforces 2020-07-09 14:31:22 2 Tiny change: ' TOO LARGE (1600 times larger?)\n' -> ' TOO LARGE? (1600 times larger)\n'
en7 Английский doubtforces 2020-07-09 14:31:01 73
en6 Английский doubtforces 2020-07-09 14:29:48 434
en5 Английский doubtforces 2020-07-09 14:24:44 48
en4 Английский doubtforces 2020-07-09 14:22:49 24
en3 Английский doubtforces 2020-07-09 14:20:39 2986 Tiny change: 'p.g++17'}]\n```' -> 'p.g++17'}]```'
en2 Английский doubtforces 2020-07-09 13:01:12 140 Tiny change: 'mpilation (**32 MB**). Even com' -> 'mpilation **(32 MB)**. Even com'
en1 Английский doubtforces 2020-07-09 12:55:47 975 Initial revision (saved to drafts)