Welcome,
Guest
|
Discussions for CodeTyphon Object Pascal Programming Language
TOPIC:
Resource bloatware 20 hours 2 minutes ago #19179
|
Hi,
I wanted to understand why the generated binaries take so much in size, almost 2MB or more for a win32 binary, even for simple applications which do not do much. Also, many of the binaries, from C:\codetyphon\typhon\bin32 directory, are affected. So I looked at the binaries, and found a pattern. Most of them contain code which does JPEG decoding, and also contain unused png files. You can see strings like "Empty JPEG image (DNL not supported)" or "tEXtSoftware www.inkscape.org". For example, the "tEXtSoftware www.inkscape.org" string comes from resource files, which embed png files. These are components I don't use, but come with packages like adLCL or adLCLBase. I wouldn't include such packages in simple applications, but they are required, because of the Interfaces unit. The problem is worse for Linux binaries, which are usually 2-3 times larger than Windows ones. The problem of including the Interfaces unit in almost every application is a discussion for another time. Can you break somehow these dependencies, please, so that they are used only when absolutely required? I'm sure that there are more files likes this, that I'm not aware of. Thank you. The png files can be found in directories like C:\codetyphon\typhon\components\BaseControls\resources\ and other subdirectories. A simple "Find in files" search for "www.inkscape.org", filtered by *.res files, shows how many of them are affected by those png files: C:\codetyphon\typhon\components\BaseControls\lib1\i386-win32\nogui\allbasecontrolsreg.res (54 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\i386-win32\nogui\treegrids.res (36 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\i386-win32\win32\allbasecontrolsreg.res (54 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\i386-win32\win32\treegrids.res (36 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\x86_64-win64\nogui\allbasecontrolsreg.res (54 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\x86_64-win64\nogui\treegrids.res (36 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\x86_64-win64\win32\allbasecontrolsreg.res (54 hits)
C:\codetyphon\typhon\components\BaseControls\lib1\x86_64-win64\win32\treegrids.res (36 hits)
C:\codetyphon\typhon\components\BaseDebuggerIDE\lib\i386-win32\nogui\idedbg_images.res (18 hits)
C:\codetyphon\typhon\components\BaseDebuggerIDE\lib\i386-win32\win32\idedbg_images.res (18 hits)
C:\codetyphon\typhon\components\BaseDebuggerIDE\lib\x86_64-win64\nogui\idedbg_images.res (18 hits)
C:\codetyphon\typhon\components\BaseDebuggerIDE\lib\x86_64-win64\win32\idedbg_images.res (18 hits)
C:\codetyphon\typhon\components\BaseDebuggerIDE\source\idedbg_images.res (18 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\source\ideintf_images.res (51 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\i386-win32\nogui\componenttreeview.res (15 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\i386-win32\nogui\ideintf_images.res (51 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\i386-win32\win32\componenttreeview.res (15 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\i386-win32\win32\ideintf_images.res (51 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\x86_64-win64\nogui\componenttreeview.res (15 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\x86_64-win64\nogui\ideintf_images.res (51 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\x86_64-win64\win32\componenttreeview.res (15 hits)
C:\codetyphon\typhon\components\BaseIDEIntf\units\x86_64-win64\win32\ideintf_images.res (51 hits)
C:\codetyphon\typhon\components\BaseSynedit\source\allsyneditdsgnreg.res (90 hits)
C:\codetyphon\typhon\components\BaseSynedit\units\i386-win32\nogui\allsyneditdsgnreg.res (90 hits)
C:\codetyphon\typhon\components\BaseSynedit\units\i386-win32\win32\allsyneditdsgnreg.res (90 hits)
C:\codetyphon\typhon\components\BaseSynedit\units\x86_64-win64\nogui\allsyneditdsgnreg.res (90 hits)
C:\codetyphon\typhon\components\BaseSynedit\units\x86_64-win64\win32\allsyneditdsgnreg.res (90 hits)
C:\codetyphon\typhon\components\packages_ds\ds_CharacterMap_IDE\lib\i386-win32\win32\charactermap_images.res (8 hits)
C:\codetyphon\typhon\components\packages_ds\ds_CharacterMap_IDE\lib\x86_64-win64\win32\charactermap_images.res (8 hits)
C:\codetyphon\typhon\components\packages_ds\ds_CharacterMap_IDE\source\charactermap_images.res (8 hits)
C:\codetyphon\typhon\components\packages_ds\ds_Pas2JavaScript_IDE\lib\i386-win32\win32\pas2jsc_images.res (21 hits)
C:\codetyphon\typhon\components\packages_ds\ds_Pas2JavaScript_IDE\lib\x86_64-win64\win32\pas2jsc_images.res (21 hits)
C:\codetyphon\typhon\components\packages_ds\ds_Pas2JavaScript_IDE\source\components\pas2jsc_images.res (21 hits)
C:\codetyphon\typhon\components\packages_lz\lz_ChmHelp\lib\i386-win32\win32\lazhelpchm.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_ChmHelp\lib\x86_64-win64\win32\lazhelpchm.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_ChmHelp\source\lazhelpchm.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_CustomDrawnDsg\lib\i386-win32\win32\paletteimg.res (42 hits)
C:\codetyphon\typhon\components\packages_lz\lz_CustomDrawnDsg\lib\x86_64-win64\win32\paletteimg.res (42 hits)
C:\codetyphon\typhon\components\packages_lz\lz_CustomDrawnDsg\source\paletteimg.res (42 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DataDict\lib\i386-win32\win32\alldatadictreg.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DataDict\lib\x86_64-win64\win32\alldatadictreg.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DataDict\source\alldatadictreg.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DateTimeCtrls\lib\i386-win32\win32\alldatetimecontrolsreg.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DateTimeCtrls\lib\x86_64-win64\win32\alldatetimecontrolsreg.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_DateTimeCtrls\source\alldatetimecontrolsreg.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_dbExport\lib\i386-win32\win32\dbexportimg.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_dbExport\lib\x86_64-win64\win32\dbexportimg.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_dbExport\source\dbexportimg.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\lib\i386-win32\win32\industrial_icons.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\lib\i386-win32\win32\ledbuttons.res (30 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\lib\x86_64-win64\win32\industrial_icons.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\lib\x86_64-win64\win32\ledbuttons.res (30 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\source\industrial_icons.res (33 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Industrial\source\ledbuttons.res (30 hits)
C:\codetyphon\typhon\components\packages_lz\lz_MemDS\lib\x86_64-win64\win32\memdsicons.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_MemDS\source\memdsicons.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_mruMenu\lib\i386-win32\win32\regmru.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_mruMenu\lib\x86_64-win64\win32\regmru.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_mruMenu\source\regmru.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_OpenGL\lib\i386-win32\win32\openglcontext.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_OpenGL\lib\x86_64-win64\win32\openglcontext.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_OpenGL\source\openglcontext.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Paradox\source\regparadox.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Printers\lib\i386-win32\win32\printersdlgs.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Printers\lib\x86_64-win64\win32\printersdlgs.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Printers\source\printersdlgs.res (9 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\lib\i386-win32\win32\bullets.res (2 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\lib\i386-win32\win32\lr_register.res (45 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\lib\x86_64-win64\win32\bullets.res (2 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\lib\x86_64-win64\win32\lr_register.res (45 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\source\bullets.res (2 hits)
C:\codetyphon\typhon\components\packages_lz\lz_Report\source\lr_register.res (45 hits)
C:\codetyphon\typhon\components\packages_lz\lz_RttiControls\lib\i386-win32\win32\rttictrls.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_RttiControls\lib\x86_64-win64\win32\rttictrls.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_RttiControls\source\rttictrls.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_sdf\lib\i386-win32\win32\registersdf.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_sdf\lib\x86_64-win64\win32\registersdf.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_sdf\source\registersdf.res (6 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLdb\lib\i386-win32\win32\registersqldb.res (69 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLdb\lib\x86_64-win64\win32\registersqldb.res (69 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLdb\source\registersqldb.res (69 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLite\source\sqliteicon.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLite3\lib\x86_64-win64\win32\sqlite3icon.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SQLite3\source\sqlite3icon.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SynEditExtra\lib\i386-win32\win32\allsyneditextrareg.res (117 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SynEditExtra\lib\x86_64-win64\win32\allsyneditextrareg.res (117 hits)
C:\codetyphon\typhon\components\packages_lz\lz_SynEditExtra\source\allsyneditextrareg.res (117 hits)
C:\codetyphon\typhon\components\packages_lz\lz_taChart\lib\i386-win32\win32\tagraph.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_taChart\lib\x86_64-win64\win32\tagraph.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_taChart\source\tagraph.res (66 hits)
C:\codetyphon\typhon\components\packages_lz\lz_tdbf\lib\i386-win32\win32\registerdbf.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_tdbf\lib\x86_64-win64\win32\registerdbf.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_tdbf\source\registerdbf.res (3 hits)
C:\codetyphon\typhon\components\packages_lz\lz_TPIPro\lib\i386-win32\win32\alltpiproregister.res (12 hits)
C:\codetyphon\typhon\components\packages_lz\lz_TPIPro\lib\x86_64-win64\win32\alltpiproregister.res (12 hits)
C:\codetyphon\typhon\components\packages_lz\lz_TPIPro\source\alltpiproregister.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ColorLib\lib\i386-win32\win32\allColorLibReg.res (99 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ColorLib\lib\x86_64-win64\win32\allColorLibReg.res (99 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ColorLib\source\allColorLibReg.res (99 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExChemical\lib\i386-win32\win32\AllExChemicalReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExChemical\lib\x86_64-win64\win32\AllExChemicalReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExChemical\source\AllExChemicalReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExSpecial\lib\i386-win32\win32\AllExSpecialReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExSpecial\lib\x86_64-win64\win32\AllExSpecialReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_ExSpecial\source\AllExSpecialReg.res (3 hits)
C:\codetyphon\typhon\components\packages_pl\pl_FpSpreadsheet\lib\i386-win32\win32\allspreadsheetreg.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_FpSpreadsheet\lib\x86_64-win64\win32\allspreadsheetreg.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_FpSpreadsheet\source\allspreadsheetreg.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_GeoGIS\lib\x86_64-win64\win32\AllGeoGis_reg.res (9 hits)
C:\codetyphon\typhon\components\packages_pl\pl_GeoGIS\source\AllGeoGis_reg.res (9 hits)
C:\codetyphon\typhon\components\packages_pl\pl_GridPrinter\lib\i386-win32\win32\gridprinter_icons.res (6 hits)
C:\codetyphon\typhon\components\packages_pl\pl_GridPrinter\source\gridprinter_icons.res (6 hits)
C:\codetyphon\typhon\components\packages_pl\pl_JPPack\lib\x86_64-win64\win32\allJPPackRegister.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_JPPack\source\allJPPackRegister.res (12 hits)
C:\codetyphon\typhon\components\packages_pl\pl_JVCL\lib\i386-win32\win32\AllJvclRegister.res (120 hits)
C:\codetyphon\typhon\components\packages_pl\pl_JVCL\lib\x86_64-win64\win32\AllJvclRegister.res (120 hits)
C:\codetyphon\typhon\components\packages_pl\pl_JVCL\source\AllJvclRegister.res (120 hits)
C:\codetyphon\typhon\components\packages_pl\pl_MapViewer\lib\x86_64-win64\win32\allmapviewerreg.res (21 hits)
C:\codetyphon\typhon\components\packages_pl\pl_MapViewer\source\allmapviewerreg.res (21 hits)
C:\codetyphon\typhon\components\packages_pl\pl_PascalSCADA\lib\x86_64-win64\win32\pascalscada.res (1 hit)
C:\codetyphon\typhon\components\packages_pl\pl_PascalSCADA\source\pascalscada.res (1 hit)
C:\codetyphon\typhon\components\packages_pl\pl_PascalScript\lib\i386-win32\win32\ALLPascalScriptReg.res (33 hits)
C:\codetyphon\typhon\components\packages_pl\pl_PascalScript\lib\x86_64-win64\win32\ALLPascalScriptReg.res (33 hits)
C:\codetyphon\typhon\components\packages_pl\pl_PascalScript\source\ALLPascalScriptReg.res (33 hits)
C:\codetyphon\typhon\components\packages_pl\pl_RX\lib\x86_64-win64\win32\allrxregister.res (135 hits)
C:\codetyphon\typhon\components\packages_pl\pl_RX\lib\x86_64-win64\win32\rx_lcl.res (4 hits)
C:\codetyphon\typhon\components\packages_pl\pl_RX\source\allrxregister.res (135 hits)
C:\codetyphon\typhon\components\packages_pl\pl_RX\source\rx_lcl.res (4 hits)
C:\codetyphon\typhon\components\packages_pl\pl_SpkToolBar\lib\i386-win32\win32\allregisterspktoolbar.res (6 hits)
C:\codetyphon\typhon\components\packages_pl\pl_SpkToolBar\lib\x86_64-win64\win32\allregisterspktoolbar.res (6 hits)
C:\codetyphon\typhon\components\packages_pl\pl_SpkToolBar\source\allregisterspktoolbar.res (6 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VirtualTrees\lib\i386-win32\win32\virtualtrees.res (34 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VirtualTrees\lib\i386-win32\win32 original res\virtualtrees.res (36 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VirtualTrees\lib\x86_64-win64\win32\virtualtrees.res (36 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VirtualTrees\source\virtualtrees new.res (34 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VirtualTrees\source\virtualtrees.res (34 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VisualPlanIt\lib\x86_64-win64\win32\vpbase.res (9 hits)
C:\codetyphon\typhon\components\packages_pl\pl_VisualPlanIt\source\vpbase.res (9 hits)
C:\codetyphon\typhon\images\components_images.res (378 hits)
C:\codetyphon\typhon\images\componenttreeview.res (15 hits)
C:\codetyphon\typhon\images\ide_doc.res (30 hits)
C:\codetyphon\typhon\images\ide_images.res (493 hits)
C:\codetyphon\typhon\lcl\btn_icons.res (33 hits)
C:\codetyphon\typhon\lcl\dialog_icons.res (15 hits)
C:\codetyphon\typhon\lcl\lcl_dbnav_images.res (27 hits)
C:\codetyphon\typhon\lcl\lcl_edbtnimg.res (18 hits)
C:\codetyphon\typhon\lcl\lcl_grid_images.res (10 hits)
C:\codetyphon\typhon\lcl\units\i386-win32\btn_icons.res (33 hits)
C:\codetyphon\typhon\lcl\units\i386-win32\dialog_icons.res (15 hits)
C:\codetyphon\typhon\lcl\units\i386-win32\lcl_dbnav_images.res (27 hits)
C:\codetyphon\typhon\lcl\units\i386-win32\lcl_edbtnimg.res (18 hits)
C:\codetyphon\typhon\lcl\units\i386-win32\lcl_grid_images.res (10 hits)
C:\codetyphon\typhon\lcl\units\x86_64-win64\btn_icons.res (33 hits)
C:\codetyphon\typhon\lcl\units\x86_64-win64\dialog_icons.res (15 hits)
C:\codetyphon\typhon\lcl\units\x86_64-win64\lcl_dbnav_images.res (27 hits)
C:\codetyphon\typhon\lcl\units\x86_64-win64\lcl_edbtnimg.res (18 hits)
C:\codetyphon\typhon\lcl\units\x86_64-win64\lcl_grid_images.res (10 hits)
C:\codetyphon\typhon\units\i386-win32\win32\components_images.res (378 hits)
C:\codetyphon\typhon\units\i386-win32\win32\ide_doc.res (30 hits)
C:\codetyphon\typhon\units\i386-win32\win32\ide_images.res (493 hits)
C:\codetyphon\typhon\units\x86_64-win64\win32\components_images.res (378 hits)
C:\codetyphon\typhon\units\x86_64-win64\win32\ide_doc.res (30 hits)
C:\codetyphon\typhon\units\x86_64-win64\win32\ide_images.res (493 hits) |
Please Log in or Create an account to join the conversation. |
Resource bloatware 19 hours 14 minutes ago #19180
|
Thanks Sir
In CodeTyphon All *.res file with name all***.res are the png identification images for TyphonIDE Components and used only from IDE. All other *.res files are functionality resources for Components. Using adLCL pkg, is the Base Philosophy of CT Modem Pascal IDE. Always in CodeTyphon you can use and write code direct for APIs like: Win32, GTK2, GTK3, QT4, QT5, QT6, Cocoa, XServer, Wayland, SDL, etc if NOT want to use adLCL pkg. It's your choice ... PilotLogic Core Programmer
|
Please Log in or Create an account to join the conversation.
Last edit: by Matis A..
|