Sign in to follow this  
Followers 0
Starboy

3.2.10 High Memory usage

7 posts in this topic

I just recently recompiled a script originally written in AutoIt 3.2.4.9 with 3.2.10 without making any changes to the script. The original executable (3.2.4.9) only used about 400k of memory the one compiled with 3.2.10 is using about 10000k same exact code just different versions of AutoIt. Any ideas why the major difference in memory usage between the 2 versions?

Thanks

Share this post


Link to post
Share on other sites



Any ideas why the major difference in memory usage between the 2 versions?

Maybe because the methods used in the old versions are different from methods used in the new one? :D

Any way, if you want as to help you more effective, please provide some code that shows the memory usage differences.


 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

It's not the code it has something to do with the 2 different versions of AutoIt. I have tried this with several different applications I wrote with AutoIt. Every thing compiled using 3.2.10 has higher memory usage than the same code compiled with 3.2.4.9 with no changes made to the code just compiled in different versions.

Share this post


Link to post
Share on other sites

It's not the code it has something to do with the 2 different versions of AutoIt. I have tried this with several different applications I wrote with AutoIt. Every thing compiled using 3.2.10 has higher memory usage than the same code compiled with 3.2.4.9 with no changes made to the code just compiled in different versions.

It's always the code :D - And yes, memory load can be depended on AutoIt capabilities (versions).

For example, you are using some functions that in earlier versions was designed differently, therefore the memory that loaded by them is different. Or it can be also the combination of several functions used together, or because of Unicode support, or... well, there is many reasons, all depends on the code and the diferent methods that used in those AutoIt versions.


 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

It's not the code...

v3.2.11.10 (beta) & v3.2.10.0 used less RAM, but a bit more Virtual Memory than v3.2.4.9 did - using a single Sleep line of code.

We cannot replicate your problem with our code and you have not provided code for us to try - so, what would you like for us to do next to try and help you?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I've noticed the same thing when compiling scripts with the newer versions of AutoIT ie. 3.2.10 and the Beta. I didn't change any source code. Memory usage shot up from 6Mb to 9Mb for the main program and the spawned processes went from 3Mb to 5Mb.

For the main program, the includes are <GUIConstants.au3,<date.au3>.

However, strangely, if the computer goes into standby or hibernate and is then resumed, the memory usage then goes down to 4Mb (previously about 1.6Mb) and the spawned processes go to 1.7Mb (previously 300-600K). Wonder what the standby / hibernate does that reduces the memory usage of the application.

I could provide code but I would have 'scrub' it to remove traces of my company's name in it.

Edited by Broots

Share this post


Link to post
Share on other sites

...I could provide code but I would have 'scrub' it to remove traces of my company's name in it.

No need. It was not hard to locate a script in the examples forum that used the two incudes that you mentioned.

http://www.autoitscript.com/forum/index.ph...showtopic=69072

(you will either need to uninstall beta or fix the code to compile it)

Yes, I saw a slight increase using v3.2.10.0 (5.5MB) vs. v3.2.4.9 (4.8MB) but nothing on the order of 10MB.

Maybe a dev can comment, but my guess is - that is the way it is going to be as features are added.

As for hibernate freeing up memory - I'm not sure why.

I'm glad that I stay away from GUIs :-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0