Code optimization / unused code stripping… or not !

Making a report is a little boring even if it is on a subject you want to commit yourself to. So, I made a break and checked the second idea I had in mind an hour ago when I woke up.

What are the news (on Xojo vs Real Studio) about Code optimization and unused code stripping ?

So, I took the code (I already had in the Clipboard to paste it in my other report) and create a new method called by no one, compile it (twice: one with and one without that new method) and compate the applications hard disk foot print… on both Windows XP and OS X 10.9.5 (the two platforms I can run (right now) on my MacBook Pro).

The results are consistent on the two platforms: the code is added to the applications !


the first “occurence” of the code is in a MenuHandler… (called by the user, in the application),
the second “occurence” of the code is in a Method, an orphan Method called by no one.

Xojo 2014r2.1
OS X 10.9.5
Windows XP

BTW: I do not found in the docs web pages the place to get those kind of information. Someone have a link ?