lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lout memory consumption


From: Jeff Kingston
Subject: Lout memory consumption
Date: Thu, 16 Mar 1995 10:12:01 +1000

I've been doing some measurements of Lout's memory consumption,
to see if there are any leaks or any savings I can make.  The
results when running the User's Guide are shown below.  It seems
that memory usage excluding the Lout binary and stack space is
totally dominated by object memory, which is where the definitions
and currently-being-buit pages are stored.  The output shows that
immediately after definitions have been read, memory consumption
is 2763562 bytes, having reached a maximum of 2774004 bytes some
time earlier.  At end of run the total memory consumption is
8091922 having reached a grand maximum of 8102164 bytes at some
point during the run.

Although this output does not show the breakdown of object memory
between the free list and in use, I have done other checks which
prove that object memory is not leaking.  Conclusion: Lout is a
memory hog, and there is nothing quick that I can do to improve
the situation.  Jeff.


Lout Debug Output:
ma: at end of definitions:
ma: Summary of malloc() memory usage    Quantity    Bytes  At max.
ma: object memory chunks                     672  2741760  2741760
ma: fonts                                      1     3600     3600
ma: lex buffers                                1    10242    20484
ma: file tables                                0      360      560
ma: cross reference tables                     0        0        0
ma: plain text output grids                    0        0        0
ma: database check tables                      0        0        0
ma: hyphenation pattern tables                 0        0        0
ma: encoding vectors                           4     5584     5584
ma: colour tables                              1      808      808
ma: language tables                            1     1208     1208
ma:                                              -------- --------
ma:                                               2763562  2774004
ma: 
ma: at end of run:
ma: Summary of malloc() memory usage    Quantity    Bytes  At max.
ma: object memory chunks                    1919  7829520  7829520
ma: fonts                                     51   125938   125938
ma: lex buffers                                1    10242    20484
ma: file tables                                0     3048     3048
ma: cross reference tables                     1      808      808
ma: plain text output grids                    0        0        0
ma: database check tables                      1       28       28
ma: hyphenation pattern tables                 1   114738   114738
ma: encoding vectors                           4     5584     5584
ma: colour tables                              1      808      808
ma: language tables                            1     1208     1208
ma:                                              -------- --------
ma:                                               8091922  8102164
ma: 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]