* Emacs costs 100M memory on Windows XP
@ 2008-02-02 11:02 Zhang Wei
2008-02-02 11:59 ` Eli Zaretskii
2008-02-02 14:58 ` Eli Zaretskii
0 siblings, 2 replies; 19+ messages in thread
From: Zhang Wei @ 2008-02-02 11:02 UTC (permalink / raw)
To: emacs-devel
On Windows XP, with font backend enabled, Emacs costs 100M or more
memory, while it just cost 20M or so before, why does it consume so
much merory? 4 times than normal configuration.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-02-02 on BREPNB
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -DUSE_FONT_BACKEND'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: chs
value of $XMODIFIERS: nil
locale-coding-system: cp936
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 11:02 Emacs costs 100M memory on Windows XP Zhang Wei
@ 2008-02-02 11:59 ` Eli Zaretskii
2008-02-02 12:31 ` Eric Lilja
2008-02-02 12:50 ` Zhang Wei
2008-02-02 14:58 ` Eli Zaretskii
1 sibling, 2 replies; 19+ messages in thread
From: Eli Zaretskii @ 2008-02-02 11:59 UTC (permalink / raw)
To: Zhang Wei; +Cc: emacs-devel
> Date: Sat, 2 Feb 2008 19:02:58 +0800
> From: "Zhang Wei" <id.brep@gmail.com>
>
> On Windows XP, with font backend enabled, Emacs costs 100M or more
> memory
How did you work around the problem with charprop.el and other files
generated by admin/unidata-gen.el? Did you generate those files
manually, outside "make bootstrap"?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 11:59 ` Eli Zaretskii
@ 2008-02-02 12:31 ` Eric Lilja
2008-02-02 12:34 ` Eli Zaretskii
2008-02-02 13:14 ` Jason Rumney
2008-02-02 12:50 ` Zhang Wei
1 sibling, 2 replies; 19+ messages in thread
From: Eric Lilja @ 2008-02-02 12:31 UTC (permalink / raw)
To: emacs-devel
Eli Zaretskii wrote:
>> Date: Sat, 2 Feb 2008 19:02:58 +0800
>> From: "Zhang Wei" <id.brep@gmail.com>
>>
>> On Windows XP, with font backend enabled, Emacs costs 100M or more
>> memory
>
> How did you work around the problem with charprop.el and other files
> generated by admin/unidata-gen.el? Did you generate those files
> manually, outside "make bootstrap"?
>
>
>
I'm also unable to build on windows with --enable-font-backend (haven't
tried without yet), it fails because No rule to make target
`../lisp/international/charprop.el'. I'm also wondering what
--enable-font-backend does on windows...
Furthermore, I'm getting loads of these warnings:
Warning: Default coding system `iso-latin-1' disagrees with
system codeset `cp1252' for this locale.
For most if not all lisp files. Did I do something wrong in the
configure step for this warning to appear?
- Eric Lilja
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 12:31 ` Eric Lilja
@ 2008-02-02 12:34 ` Eli Zaretskii
2008-02-02 13:10 ` Jason Rumney
2008-02-02 13:14 ` Jason Rumney
1 sibling, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2008-02-02 12:34 UTC (permalink / raw)
To: Eric Lilja; +Cc: emacs-devel
> From: Eric Lilja <mindcooler@gmail.com>
> Date: Sat, 02 Feb 2008 13:31:23 +0100
>
> Eli Zaretskii wrote:
> >> Date: Sat, 2 Feb 2008 19:02:58 +0800
> >> From: "Zhang Wei" <id.brep@gmail.com>
> >>
> >> On Windows XP, with font backend enabled, Emacs costs 100M or more
> >> memory
> >
> > How did you work around the problem with charprop.el and other files
> > generated by admin/unidata-gen.el? Did you generate those files
> > manually, outside "make bootstrap"?
> >
> >
> >
>
> I'm also unable to build on windows with --enable-font-backend (haven't
> tried without yet), it fails because No rule to make target
> `../lisp/international/charprop.el'.
This happens because the Windows build does not run
admin/unidata/Makefile. I'm working on fixing that.
> I'm also wondering what --enable-font-backend does on windows...
Same here.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 12:34 ` Eli Zaretskii
@ 2008-02-02 13:10 ` Jason Rumney
2008-02-02 14:33 ` Eli Zaretskii
0 siblings, 1 reply; 19+ messages in thread
From: Jason Rumney @ 2008-02-02 13:10 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Eric Lilja, emacs-devel
Eli Zaretskii wrote:
> This happens because the Windows build does not run
> admin/unidata/Makefile. I'm working on fixing that.
>
I added some rules to build charprop.el yesterday. However, the DOC file
is built on Windows BEFORE temacs, so we cannot generate charprop.el in
time for the build to succeed.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 13:10 ` Jason Rumney
@ 2008-02-02 14:33 ` Eli Zaretskii
0 siblings, 0 replies; 19+ messages in thread
From: Eli Zaretskii @ 2008-02-02 14:33 UTC (permalink / raw)
To: Jason Rumney; +Cc: mindcooler, emacs-devel
> Date: Sat, 02 Feb 2008 13:10:39 +0000
> From: Jason Rumney <jasonr@gnu.org>
> CC: Eric Lilja <mindcooler@gmail.com>, emacs-devel@gnu.org
>
> Eli Zaretskii wrote:
> > This happens because the Windows build does not run
> > admin/unidata/Makefile. I'm working on fixing that.
> >
> I added some rules to build charprop.el yesterday. However, the DOC file
> is built on Windows BEFORE temacs, so we cannot generate charprop.el in
> time for the build to succeed.
I think you added those rules in the wrong place, or maybe they are
not enough to bootstrap. DOC is indeed built before temacs, but we
already have built the bootstrap version of temacs and emacs before
that, so we could use those bootstrap versions to produce charprop.el
(and other files generated from UnicodeData.txt). This is what the
Unix build process does.
I added the necessary rules along the above ideas, and I'm
bootstrapping now. If the bootstrap runs to completion, I will commit
the changes I have so far.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 12:31 ` Eric Lilja
2008-02-02 12:34 ` Eli Zaretskii
@ 2008-02-02 13:14 ` Jason Rumney
2008-02-02 14:34 ` Eli Zaretskii
1 sibling, 1 reply; 19+ messages in thread
From: Jason Rumney @ 2008-02-02 13:14 UTC (permalink / raw)
To: Eric Lilja; +Cc: emacs-devel
Eric Lilja wrote:
> I'm also wondering what --enable-font-backend does on windows...
It does the same as other platforms. It enables the new font backend
which better handles unicode fonts.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 13:14 ` Jason Rumney
@ 2008-02-02 14:34 ` Eli Zaretskii
2008-02-02 21:04 ` Jason Rumney
0 siblings, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2008-02-02 14:34 UTC (permalink / raw)
To: Jason Rumney; +Cc: mindcooler, emacs-devel
> Date: Sat, 02 Feb 2008 13:14:17 +0000
> From: Jason Rumney <jasonr@gnu.org>
> Cc: emacs-devel@gnu.org
>
> Eric Lilja wrote:
> > I'm also wondering what --enable-font-backend does on windows...
>
> It does the same as other platforms. It enables the new font backend
> which better handles unicode fonts.
Do we need to fix the build without it (which currently fails on
Windows), or should we make --enable-font-backend the default?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 14:34 ` Eli Zaretskii
@ 2008-02-02 21:04 ` Jason Rumney
2008-02-04 12:33 ` Kenichi Handa
0 siblings, 1 reply; 19+ messages in thread
From: Jason Rumney @ 2008-02-02 21:04 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mindcooler, emacs-devel
Eli Zaretskii wrote:
>> Date: Sat, 02 Feb 2008 13:14:17 +0000
>> From: Jason Rumney <jasonr@gnu.org>
>> Cc: emacs-devel@gnu.org
>>
>> Eric Lilja wrote:
>>
>>> I'm also wondering what --enable-font-backend does on windows...
>>>
>> It does the same as other platforms. It enables the new font backend
>> which better handles unicode fonts.
>>
>
> Do we need to fix the build without it (which currently fails on
> Windows), or should we make --enable-font-backend the default?
>
I think the original plan was to make the new font backend the default
after the initial flood of post-merge bug reports died down, but if the
old font code is going to be a major source of such reports, maybe it is
better to make it the default sooner.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 21:04 ` Jason Rumney
@ 2008-02-04 12:33 ` Kenichi Handa
2008-02-04 12:50 ` Jason Rumney
2008-02-07 1:53 ` YAMAMOTO Mitsuharu
0 siblings, 2 replies; 19+ messages in thread
From: Kenichi Handa @ 2008-02-04 12:33 UTC (permalink / raw)
To: Jason Rumney; +Cc: mindcooler, eliz, emacs-devel
In article <47A4DAED.4000801@gnu.org>, Jason Rumney <jasonr@gnu.org> writes:
> > Do we need to fix the build without it (which currently fails on
> > Windows), or should we make --enable-font-backend the default?
> >
> I think the original plan was to make the new font backend the default
> after the initial flood of post-merge bug reports died down, but if the
> old font code is going to be a major source of such reports, maybe it is
> better to make it the default sooner.
I agree.
And I also had the plan of deleting regacy font handling
codes as soon as it is supported also on non-Unix
non-GNU-Linux system (i.e. Windows and Mac). When Emacs.app
(Mac Cocoa port) is merged into the trunk, I'd like to start
working on it.
---
Kenichi Handa
handa@ni.aist.go.jp
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-04 12:33 ` Kenichi Handa
@ 2008-02-04 12:50 ` Jason Rumney
2008-02-04 12:59 ` Juanma Barranquero
2008-02-07 1:53 ` YAMAMOTO Mitsuharu
1 sibling, 1 reply; 19+ messages in thread
From: Jason Rumney @ 2008-02-04 12:50 UTC (permalink / raw)
To: Kenichi Handa; +Cc: mindcooler, eliz, emacs-devel
Kenichi Handa wrote:
>> I think the original plan was to make the new font backend the default
>> after the initial flood of post-merge bug reports died down, but if the
>> old font code is going to be a major source of such reports, maybe it is
>> better to make it the default sooner.
>>
>
> I agree.
>
The problems on Windows have been fixed, so there is no urgency now.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-04 12:50 ` Jason Rumney
@ 2008-02-04 12:59 ` Juanma Barranquero
2008-02-05 4:23 ` Miles Bader
0 siblings, 1 reply; 19+ messages in thread
From: Juanma Barranquero @ 2008-02-04 12:59 UTC (permalink / raw)
To: Jason Rumney; +Cc: mindcooler, eliz, Kenichi Handa, emacs-devel
On Feb 4, 2008 1:50 PM, Jason Rumney <jasonr@gnu.org> wrote:
> The problems on Windows have been fixed, so there is no urgency now.
And the new font backend seems significantly slower.
Juanma
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-04 12:59 ` Juanma Barranquero
@ 2008-02-05 4:23 ` Miles Bader
2008-02-05 10:22 ` Juanma Barranquero
0 siblings, 1 reply; 19+ messages in thread
From: Miles Bader @ 2008-02-05 4:23 UTC (permalink / raw)
To: Juanma Barranquero
Cc: mindcooler, eliz, Kenichi Handa, emacs-devel, Jason Rumney
"Juanma Barranquero" <lekktu@gmail.com> writes:
>> The problems on Windows have been fixed, so there is no urgency now.
>
> And the new font backend seems significantly slower.
In what case?
I didn't notice any obviousy slowdown when switching to the new font
backend, even on my home machine, which is fairly slow (450 MHz P3).
-Miles
--
People who are more than casually interested in computers should have at
least some idea of what the underlying hardware is like. Otherwise the
programs they write will be pretty weird. -- Donald Knuth
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-05 4:23 ` Miles Bader
@ 2008-02-05 10:22 ` Juanma Barranquero
0 siblings, 0 replies; 19+ messages in thread
From: Juanma Barranquero @ 2008-02-05 10:22 UTC (permalink / raw)
To: Miles Bader; +Cc: Emacs Devel
> I didn't notice any obviousy slowdown when switching to the new font
> backend, even on my home machine, which is fairly slow (450 MHz P3).
It is perhaps only an issue of the Windows port.
I can see the problem, for example, by visiting any file and just
scrolling down. With the new backend, when the cursor reaches the
bottom and the window is recentered, the delay in redrawing the bottom
half is clearly noticeable (often half a second or more). That's on a
3GHz Pentium IV with Windows XP Pro. With the old backend, the redraw
is instantaneous.
Juanma
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-04 12:33 ` Kenichi Handa
2008-02-04 12:50 ` Jason Rumney
@ 2008-02-07 1:53 ` YAMAMOTO Mitsuharu
1 sibling, 0 replies; 19+ messages in thread
From: YAMAMOTO Mitsuharu @ 2008-02-07 1:53 UTC (permalink / raw)
To: Kenichi Handa; +Cc: mindcooler, eliz, emacs-devel, Jason Rumney
>>>>> On Mon, 04 Feb 2008 21:33:18 +0900, Kenichi Handa <handa@ni.aist.go.jp> said:
>> I think the original plan was to make the new font backend the
>> default after the initial flood of post-merge bug reports died
>> down, but if the old font code is going to be a major source of
>> such reports, maybe it is better to make it the default sooner.
> I agree.
> And I also had the plan of deleting regacy font handling codes as
> soon as it is supported also on non-Unix non-GNU-Linux system
> (i.e. Windows and Mac). When Emacs.app (Mac Cocoa port) is merged
> into the trunk, I'd like to start working on it.
The Mac Carbon port in the trunk already does not compile regardless
of its font backend setting. Also, the Mac Cocoa port does not
support the legacy font code now. That says, switching to the new
font backend does not do harm to either of Mac ports with respect to
the current status. So I think it's not necessary to wait for the
merger of the Mac Cocoa port to switch to the new font backend.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 11:59 ` Eli Zaretskii
2008-02-02 12:31 ` Eric Lilja
@ 2008-02-02 12:50 ` Zhang Wei
1 sibling, 0 replies; 19+ messages in thread
From: Zhang Wei @ 2008-02-02 12:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
On 2/2/08, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sat, 2 Feb 2008 19:02:58 +0800
> > From: "Zhang Wei" <id.brep@gmail.com>
> >
> > On Windows XP, with font backend enabled, Emacs costs 100M or more
> > memory
>
> How did you work around the problem with charprop.el and other files
> generated by admin/unidata-gen.el? Did you generate those files
> manually, outside "make bootstrap"?
>
I just copy them from the emacs-unicode-2 branch.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 11:02 Emacs costs 100M memory on Windows XP Zhang Wei
2008-02-02 11:59 ` Eli Zaretskii
@ 2008-02-02 14:58 ` Eli Zaretskii
2008-02-06 0:35 ` Jason Rumney
1 sibling, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2008-02-02 14:58 UTC (permalink / raw)
To: Zhang Wei; +Cc: emacs-devel
> Date: Sat, 2 Feb 2008 19:02:58 +0800
> From: "Zhang Wei" <id.brep@gmail.com>
>
> On Windows XP, with font backend enabled, Emacs costs 100M or more
> memory
It's "only" 87MB for me, but that is also way too much.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Emacs costs 100M memory on Windows XP
2008-02-02 14:58 ` Eli Zaretskii
@ 2008-02-06 0:35 ` Jason Rumney
2008-02-06 7:08 ` Zhang Wei
0 siblings, 1 reply; 19+ messages in thread
From: Jason Rumney @ 2008-02-06 0:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Zhang Wei, emacs-devel
Eli Zaretskii wrote:
>> Date: Sat, 2 Feb 2008 19:02:58 +0800
>> From: "Zhang Wei" <id.brep@gmail.com>
>>
>> On Windows XP, with font backend enabled, Emacs costs 100M or more
>> memory
>>
>
> It's "only" 87MB for me, but that is also way too much.
>
The bug should be fixed now, the minimum width and height of characters
was being initialised to 1 (pixel), and not updated to the real value by
the new font code, so redisplay was allocating far more memory than it
needed to keep track of the displayed characters.
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2008-02-07 1:53 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-02 11:02 Emacs costs 100M memory on Windows XP Zhang Wei
2008-02-02 11:59 ` Eli Zaretskii
2008-02-02 12:31 ` Eric Lilja
2008-02-02 12:34 ` Eli Zaretskii
2008-02-02 13:10 ` Jason Rumney
2008-02-02 14:33 ` Eli Zaretskii
2008-02-02 13:14 ` Jason Rumney
2008-02-02 14:34 ` Eli Zaretskii
2008-02-02 21:04 ` Jason Rumney
2008-02-04 12:33 ` Kenichi Handa
2008-02-04 12:50 ` Jason Rumney
2008-02-04 12:59 ` Juanma Barranquero
2008-02-05 4:23 ` Miles Bader
2008-02-05 10:22 ` Juanma Barranquero
2008-02-07 1:53 ` YAMAMOTO Mitsuharu
2008-02-02 12:50 ` Zhang Wei
2008-02-02 14:58 ` Eli Zaretskii
2008-02-06 0:35 ` Jason Rumney
2008-02-06 7:08 ` Zhang Wei
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.