tag:blogger.com,1999:blog-38057291.post7868633743983703149..comments2023-09-13T06:19:37.913-07:00Comments on On the road with Lazarus/Freepascal: Reduce memory usage of LCLLuiz Américohttp://www.blogger.com/profile/10187299451635803731noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-38057291.post-53612766895101874442008-05-21T20:15:00.000-07:002008-05-21T20:15:00.000-07:00BTW, i have other ideas to reduce memory usage, bu...BTW, i have other ideas to reduce memory usage, but those, unlike this, can be classified between intrusive and hack.<BR/><BR/>I'll post some articles ASAP.Luiz Américohttps://www.blogger.com/profile/10187299451635803731noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-17027392325113682132008-05-21T20:09:00.000-07:002008-05-21T20:09:00.000-07:00The expected reduction is not really very signific...The expected reduction is not really very significant. In fact is surprising: 20kb means 1000 TControl/TMenuItem, and i doubt the IDE has all this. Maybe there's some side effect.<BR/><BR/>Be aware that fpc, AFAIK, allocates large blocks of memory to reduce memory fragmentation, so the virtual memory may not represent the real usage.Luiz Américohttps://www.blogger.com/profile/10187299451635803731noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-86754426812776174862008-05-21T19:20:00.000-07:002008-05-21T19:20:00.000-07:00I commited your patch in r15201 though effect is n...I commited your patch in r15201 though effect is not very noticable:<BR/><BR/>laz ide:<BR/> memory virtual memory<BR/>before 21544 16208<BR/>after 21512 16188<BR/>---------------------------------<BR/>diff 32KB 20KB<BR/><BR/>So effect is about 0.1% for the ide :)Anonymoushttps://www.blogger.com/profile/13087299539963377503noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-30826346740077476582008-05-20T03:01:00.000-07:002008-05-20T03:01:00.000-07:00I'll post a link. BTW i was planning to propose th...I'll post a link. <BR/><BR/>BTW i was planning to propose the same for the Qt interface. I already take a look and found places where can be changed, just lazy to do the patch.Luiz Américohttps://www.blogger.com/profile/10187299451635803731noreply@blogger.comtag:blogger.com,1999:blog-38057291.post-30617899872988351552008-05-19T17:56:00.000-07:002008-05-19T17:56:00.000-07:00Very interesting. Why not to post to lazarus/fpc m...Very interesting. Why not to post to lazarus/fpc mail list? I don't think this blog is well known (though I am reading it from time to time).Anonymoushttps://www.blogger.com/profile/13087299539963377503noreply@blogger.com