← Back to team overview

kicad-developers team mailing list archive

Re: KICAD_USE_FONT_REDUCED_SET question

 

On 2019-10-09 02:26, jp charras wrote:
Le 07/10/2019 à 20:07, Seth Hillbrand a écrit :

Hi Seth,

Here is a test showing the memory used by pcbnew, with and without CJK
font (I used the Windows monitor resources):

Initial state:
Available memory: 2280 Mb
Kicad is compiled in Release version.

pcbnew loaded, without CJK:
Available memory: 2153 Mb
pcbnew + fp viewer loaded, without CJK:
Available memory: 2139 Mb
Pcbnew+Eeschema, without CJK:
Available memory: 2060 Mb

pcbnew loaded, with CJK:
Available memory: 1590 Mb
pcbnew + fp viewer loaded, without CJK:
Available memory: 1537 Mb
Pcbnew+Eeschema, with CJK:
Available memory: 1176 Mb

So, the CJK font takes roughly 900Mb at run time when runnning Eeschema
+ Pcbnew.

It explains why I am running out of memory.
There is certainly room for optimization.

Thanks JP! I can look into that. I see the same difference in total size under Linux but interestingly not in malloc allocations, so I'll need to dig a bit deeper into that usage.

Best-
Seth

Seth Hillbrand
Chief Technologist
KiCad Services Corporation
+1 530 302 5483 | +1 212 603 9372
www.kipro-pcb.com
Davis, CA


References