Confusing with The memory a macruby app used
Hi: I want to write an app with macruby , and want to make sure there's not memory problem. I create an Macruby-Application with Xcode ,and lanuch it ,using the Activity Monitor , it using about 44M memory ,and create an ObjectivC-Application ,it only use 8M memory ,is it normal? thanks
Yes it is - Matt Sent from my iPhone On Oct 24, 2010, at 6:26, 聂殿辉 <niedhui@gmail.com> wrote:
Hi: I want to write an app with macruby , and want to make sure there's not memory problem. I create an Macruby-Application with Xcode ,and lanuch it ,using the Activity Monitor , it using about 44M memory ,and create an ObjectivC-Application ,it only use 8M memory ,is it normal? thanks _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi, The memory used by a new MacRuby app depends on your environment, but it's indeed bigger than a default Objective-C app. If you start enabling garbage collection in the Objective-C app and create some objects, the rsize should then be the same as a normal MacRuby app (since the runtime itself creates some objects when starting). Using AOT compilation will decrease some memory usage. If you think the default rsize of a MacRuby process is too high please file a ticket and we will investigate. Otherwise, make sure the rsize of your app remains constant while using it, if you notice it's growing then please let us know, since it might be a leak. Laurent On Oct 24, 2010, at 6:26 AM, 聂殿辉 wrote:
Hi: I want to write an app with macruby , and want to make sure there's not memory problem. I create an Macruby-Application with Xcode ,and lanuch it ,using the Activity Monitor , it using about 44M memory ,and create an ObjectivC-Application ,it only use 8M memory ,is it normal? thanks _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
got it .thanks On Oct 25, 2010, at 9:20 AM, Laurent Sansonetti wrote:
Hi,
The memory used by a new MacRuby app depends on your environment, but it's indeed bigger than a default Objective-C app. If you start enabling garbage collection in the Objective-C app and create some objects, the rsize should then be the same as a normal MacRuby app (since the runtime itself creates some objects when starting).
Using AOT compilation will decrease some memory usage.
If you think the default rsize of a MacRuby process is too high please file a ticket and we will investigate. Otherwise, make sure the rsize of your app remains constant while using it, if you notice it's growing then please let us know, since it might be a leak.
Laurent
On Oct 24, 2010, at 6:26 AM, 聂殿辉 wrote:
Hi: I want to write an app with macruby , and want to make sure there's not memory problem. I create an Macruby-Application with Xcode ,and lanuch it ,using the Activity Monitor , it using about 44M memory ,and create an ObjectivC-Application ,it only use 8M memory ,is it normal? thanks _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (4)
-
Laurent Sansonetti
-
Matt Aimonetti
-
niedhui
-
聂殿辉