LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Joseph Wright <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 24 Nov 2009 13:12:40 +0000
Content-Type:
text/plain
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