fuzziqersoftware / resource_dasm

Classic Mac OS resource fork and application disassembler, with reverse-engineering tools for specific applications
MIT License
114 stars 13 forks source link

Resource Templates: replace shared_ptr with unique_ptr to see how the size of the `resource_dasm` executable changes #66

Closed Kristine1975 closed 1 year ago

Kristine1975 commented 1 year ago

This is mainly an experiment, motivated by issue #59. All builds were done with XCode 11 on macOS 10.14.6.

Default build:

Default build + strip:

So with and without debug symbols, using unique_ptr in resource templates makes the executable ~100K smaller.

(the changes in SystemTemplates.cc are a bit more involved, because initializer_list's elements aren't movable :rolleyes:)