globalwarming awareness2007

Mengecilkan ukuran aplikasi delphi

Berikut ukuran exe file delphi dari sebuah blank form:
Delphi 2: 157,184 bytes
Delphi 3: 179,712 bytes
Delphi 4: 282,112 bytes
Delphi 5: 294,912 bytes
Delphi 6: 359,424 bytes
Delphi 7: 368,128 bytes (+134.2% dari Delphi 2!!)
cukup besar untuk sebuah aplikasi form kosong tanpa aksi apapun.!

Untuk membuat aplikasi dengan ukuran sekecil mungkin perhatikan hal-hal berikut:

  • Gunakan pernyataan CASE.. dari pada IF..THEN..ELSE..
  • Setiap .pas file akan di link kan ke projek kita, ketikan kode berikut di tiap bagian paling atas kode: {$D-,L-,O+,Q-,R-,Y-,S-}

Berikut hal terpenting untuk membuatnya menjadi jauh lebih kecil:
setelah project dibuat dan di kompilasi (run) lakukan hal berikut:

  1. Klik menu “Project | Options”, select tab “Packages” dan check option “Build with runtime packages”.dan check juga option – by default:
  2. Hapus semua tulisan yang ada di kolom bawah check box “Build with runtime packages” kemudian ganti dengan berikut: vclx;VCL;vcldb;vcldbx;VclSmp;inetdb;inet;Qrpt;teeui;teedb; tee;dss;IBEVNT
  3. Untuk delphi 3 sebagai berikut: vclx30;VCL30;vcldb30;vcldbx30;VclSmp30;inetdb30; inet30;Qrpt30;teeui30;teedb30;tee30;dss30;IBEVNT30
  4. Kompilasi (run) kembali project yang di buat dan lihat hasilnya.


Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image