bestlong 怕失憶論壇's Archiver

bestlong 發表於 2008-3-3 11:06

FastMM

FastMM is a lightning fast replacement memory manager for Borland Delphi Win32 applications that scales well in multi-threaded applications, is not prone to memory fragmentation, and supports shared memory without the use of external .DLL files.

[url]http://sourceforge.net/projects/fastmm/[/url]
[url]http://fastmm.sourceforge.net/[/url]

bestlong 發表於 2010-6-3 10:34

安裝 FastMM 很簡單, 下載後解壓縮放到特定目錄下
以我來說是放在 C:\Program Files\Borland\Delphi5\FastMM494 目錄內容如下圖:



然後設定 Delphi 的 Tools > Environment Options > Library Path 如下圖:



bestlong 發表於 2010-6-3 10:35

想在應用程式中使用 FastMM 只要在 .dpr 專案檔中的 uses 中第一個加入 FastMM4 就可以了,範例如下:[code]program Project1;

uses
  FastMM4,
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
[/code]

bestlong 發表於 2011-10-25 15:38

FastMM 不單是可以改善應用程式的記憶體管理來提升效率,也可以改善整合開發環境的執行效率

解壓縮後可在 Replacement BorlndMM DLL\Delphi\Precompiled\for Delphi IDE\Performance\ 目錄下找到 BorlndMM.dll 檔案,用來替換掉 Borland\DelphiX\bin 目錄內(X 為版本號)的同名檔案,會提升開發環境的運作速度。(覆蓋前一定要先做備份)
頁: [1]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.