diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-11-21 16:58:29 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-11-22 18:03:48 +0100 |
commit | 20fcf2feccbe2c48ee33cee73ed8bf9a6d4a06a2 (patch) | |
tree | 80ff5c9da6d6ad74e70b68fef20e67420a878b45 /doc | |
parent | c38e8f3a80b8dcf819b8a9aa00bb1d0a27e55acc (diff) | |
download | sciteco-20fcf2feccbe2c48ee33cee73ed8bf9a6d4a06a2.tar.gz |
partially reversed/fixed-up b7ff56db631: avoid g_slice allocators and performance issues with memory measurements
* Fixed build problems on Windows
* g_slice on Windows has been shown to be of little use either
and it does not work well with the GetProcessMemoryInfo()
measurements.
Also, it brings the same problem as on Glibc: Not even command-line
termination returns the memory to the OS.
Therefore, we don't use g_slice at all and commented on it.
* The custom Linux and Windows memory measurement approaches
have been shown to be inefficient.
As a workaround, scripts disable memory limiting.
* A better approach -- but it will only work on Glibc -- might
be to hook into malloc(), realloc() and free() globally
and use the malloc_usable_size() of a heap object for
memory measurements. This will be relatively precise and cheap.
* We still need the "Object" base class in order to measure
memory usage as a fallback approach.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/grosciteco.tes | 2 | ||||
-rwxr-xr-x | doc/htbl.tes | 2 | ||||
-rwxr-xr-x | doc/tedoc.tes | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/doc/grosciteco.tes b/doc/grosciteco.tes index 262f2c0..e94603e 100755 --- a/doc/grosciteco.tes +++ b/doc/grosciteco.tes @@ -1,6 +1,8 @@ #!/usr/local/bin/sciteco -m !* grosciteco.tes [-t <output-tec>] [--] <output-woman> <input> *! +0,2EJ !* FIXME: Memory limiting is too slow *! + :EMQ[$SCITECOPATH]/getopt.tes !* Process command-line options *! diff --git a/doc/htbl.tes b/doc/htbl.tes index fced7e7..11851ae 100755 --- a/doc/htbl.tes +++ b/doc/htbl.tes @@ -2,6 +2,8 @@ !* htbl.tes <input> <output> *! !* Troff tbl "drop-in" replacement *! +0,2EJ !* FIXME: Memory limiting is too slow *! + LR 0X#in 2LR 0X#ou EBQ#in EB -EF < diff --git a/doc/tedoc.tes b/doc/tedoc.tes index 623be3a..f89c45f 100755 --- a/doc/tedoc.tes +++ b/doc/tedoc.tes @@ -1,6 +1,8 @@ #!/usr/local/bin/sciteco -m !* tedoc.tes [-C] [--] <output> <input> <sources> *! +0,2EJ !* FIXME: Memory limiting is too slow *! + :EMQ[$SCITECOPATH]/getopt.tes @[format_header]{ |