unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* byte-compiling a few font-lock related functions
@ 2009-07-04  9:05 Tobias C. Rittweiler
  2009-07-04 13:11 ` Miles Bader
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias C. Rittweiler @ 2009-07-04  9:05 UTC (permalink / raw)
  To: emacs-devel


At the moment, ELP reports the following functions as the most expensive
while scrolling through a large .lisp file (almost 10k lines):

jit-lock-function                                          703         4.114131      0.0058522489
jit-lock-fontify-now                                       703         4.107315      0.0058425533
font-lock-fontify-region                                   705         4.0757660000  0.0057812283
font-lock-default-fontify-region                           705         4.0608700000  0.0057600992
font-lock-fontify-keywords-region                          705         1.8490479999  0.0026227631

Byte-compiling these files results in the following timings:

jit-lock-function                                          703         3.4189879999  0.0048634253
jit-lock-fontify-now                                       703         3.4116139999  0.0048529359
font-lock-fontify-region                                   703         3.3229810000  0.0047268577
font-lock-default-fontify-region                           703         3.3077700000  0.0047052204
font-lock-fontify-keywords-region                          703         1.6209109999  0.0023057055

(CVS version from late April.)

Difference is over half a second, so perhaps it'd make sense to
ship these functions byte-compiled?

  -T.

PS. This is the first scrolling through the file. Later scrolling is
    much snappier due to jit-lock.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: byte-compiling a few font-lock related functions
  2009-07-04  9:05 byte-compiling a few font-lock related functions Tobias C. Rittweiler
@ 2009-07-04 13:11 ` Miles Bader
  0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2009-07-04 13:11 UTC (permalink / raw)
  To: emacs-devel

"Tobias C. Rittweiler" <tcr@freebits.de> writes:
> Difference is over half a second, so perhaps it'd make sense to
> ship these functions byte-compiled?

They should be byte-compiled by the build process.

-Miles

-- 
Genealogy, n. An account of one's descent from an ancestor who did not
particularly care to trace his own.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-04 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-04  9:05 byte-compiling a few font-lock related functions Tobias C. Rittweiler
2009-07-04 13:11 ` Miles Bader

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).