From xemacs-m  Fri Mar 14 15:39:35 1997
Received: from pat.idt.unit.no (0@pat.idt.unit.no [129.241.103.5])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA13581
	for <xemacs-beta@xemacs.org>; Fri, 14 Mar 1997 15:39:20 -0600 (CST)
Received: from ynde.idt.unit.no (1466@ynde.idt.unit.no [129.241.200.28])
	by pat.idt.unit.no (8.8.5/8.8.5) with ESMTP id WAA02637
	for <xemacs-beta@xemacs.org>; Fri, 14 Mar 1997 22:39:19 +0100 (MET)
Received: (from palat@localhost)
	by ynde.idt.unit.no (8.8.5/8.8.5) id WAA05093;
	Fri, 14 Mar 1997 22:39:16 +0100 (MET)
Sender: Sudeep.Palat@item.ntnu.no
To: xemacs-beta@xemacs.org
Subject: reftex and (X)Emacs memory usage
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: Sudeep Kumar Palat <Sudeep.Palat@item.ntnu.no>
Date: 14 Mar 1997 22:39:14 +0100
Message-ID: <yv93etynofx.fsf@ynde.idt.unit.no>
Lines: 51
X-Mailer: Gnus v5.4.15/XEmacs 20.1


Does anybody here use reftex?

Scanning (reftex-scan-document) a large latex file (220KB with 150 odd
labels) in XEmacs increases the memory usage by about _7MB_ with
gc-cons-threshold of 5000000.  With default gc-cons-threshold
(500000), the increase is about 2MB.

With Emacs 19.34, the increase is only _1MB_ and it seems to be
independent of gc-cons-threshold.

Before trying this out, don't forget to start a fresh xemacs.  Same
behaviour with AucTeX or LaTeX mode.

Does this difference between Emacs and XEmacs memory usage mean
anything?

The sequence I tried:

  xemacs -no-init-file -no-site-file
  
  (setq load-path (cons (expand-file-name "~palat/.XEmacs/") load-path))
  (load-library "reftex")
  (setq gc-cons-threshold 5000000)
  (find-file "~/Temp/test-reftex.tex")  ;my test file
  (turn-on-reftex)
  (reftex-scan-document)
  
The same with emacs.

sudeep

XEmacs 20.1b2 on sun-sparc-solaris-2.5, gcc 2.7.2.1, X11R6


;; reftex.el -- Minor mode for doing \label{} \ref{} and \cite{} in LaTeX
;; Copyright (c) 1997 Carsten Dominik 
;;
;; Author:   Carsten Dominik <dominik@strw.LeidenUniv.nl>
;; Created:  28 Jan 1997
;; Version:  1.07a
;; Keywords: LaTeX, BibTeX, label, ref, cite
;;
;; Derived from: cdtex.el,v 3.32
;; 
;; This file is not part of GNU Emacs
;;
;; LCD Archive Entry:
;; reftex|Carsten Dominik|dominik@strw.leidenuniv.nl|
;; LaTeX Minor Mode with automatic \label{}, interactive \ref{},\cite{}|
;; 10-Feb-1997|Revision 1.07a|

