LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Tue, 24 Nov 2009 13:12:40 +0000
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-1
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (22 lines)
J.Fine wrote:
> Frank:  I don't understand what you mean by 'the overhead of processing'.)

I assume Frank was thinking that we wouldn't want to do everything in a
dictionary manner as some arguments are always needed, and so something
like:

\def\foo@bar#1#2{%
  Title:   #1\\%
  Name:    \DictionaryLookup{#2}{name}\\%
  Address: \DictionaryLookup{#2}{address}\\%
}

will be faster for the explicitly passed #1 than the dictionary items,
independent of how the dictionary is implemented. (I'd assume that a
dictionary would be a single data structure: I'd probably do it as an
expl3 properly list, and then recovering data would certainly add some
processing overhead. However, even a csname expansion as you outline is
an additional overhead compared to an explicitly passed value.)
--
Joseph Wright

ATOM RSS1 RSS2