Gnus development mailing list
 help / color / mirror / Atom feed
From: larsi@ifi.uio.no (Lars Magne Ingebrigtsen)
Subject: Re: Byte-compiling the line specs
Date: 06 Nov 1995 14:32:46 +0100	[thread overview]
Message-ID: <w8senvlzx4x.fsf@narfi.ifi.uio.no> (raw)
In-Reply-To: Felix Lee's message of Thu, 02 Nov 1995 17:26:46 -0800

Felix Lee <flee@teleport.com> writes:

> so, umm, I'll try gc monitoring soon.  but really, the best test is to
> write a full-blown format-string compiler and see how it performs in
> live cases.

Definitely.  These timings are interesting, but `(princ 99999)' isn't
a very realistic element resulting from a line spec.  There's lots of
"%5d"s (etc) but no "%d"s.  I'd be very interested in seeing timings
resulting from transforming:

(insert
 (progn
   (insert
    (format "%c%c%c%s " gnus-tmp-unread gnus-tmp-replied gnus-tmp-score-char gnus-tmp-indentation))
   (let
       ((b
	 (point)))
     (insert
      (format "%c%4d: %-20s%c" gnus-tmp-opening-bracket gnus-tmp-lines
	      (let*
		  ((val
		    (eval gnus-tmp-name))
		   (valstr
		    (if
			(numberp val)
			(int-to-string val)
		      val)))
		(if
		    (>
		     (length valstr)
		     20)
		    (substring valstr 0 20)
		  valstr))
	      gnus-tmp-closing-bracket))
     (put-text-property b
			(point)
			'mouse-face gnus-mouse-face))
   (insert
    (format " %s\n" gnus-tmp-subject-or-nil))))

-- 
Home is where the cat is.


      reply	other threads:[~1995-11-06 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199510311028.LAA06365@ssv4.dina.kvl.dk>
     [not found] ` <199510311052.CAA16806@desiree.teleport.com>
     [not found]   ` <199510311413.PAA06470@ssv4.dina.kvl.dk>
1995-11-01 16:34     ` Ken Raeburn
1995-11-01 20:39       ` Felix Lee
1995-11-02 21:38         ` Ken Raeburn
1995-11-03  1:26           ` Felix Lee
1995-11-06 13:32             ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=w8senvlzx4x.fsf@narfi.ifi.uio.no \
    --to=larsi@ifi.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).