On Apr 27, 2013, at 10:57 AM, Nick Coghlan <ncogh...@gmail.com> wrote:

> On Sat, Apr 27, 2013 at 6:43 AM, PJ Eby <p...@telecommunity.com> wrote:
>> Actually, while I'm on that subject, I wonder what the parsing
>> overhead is going to be for the JSON metadata?  I guess as long as
>> it's done in C, it'll probably be ok.  I expect the main runtime
>> performance issue for metadata will just be avoiding reading the
>> metadata in the first place, by using filename-embedded info so a
>> directory read can load the critical info for all available packages,
>> not just the one of current interest.  Beyond that, keeping the
>> description in a separate file will keep any loads that do happen fast
>> (how often is the long description currently needed by anything other
>> than PyPI?)
> 
> The current draft still has the long description in the main metadata
> file, but you're right, replacing that with a filename relative to the
> metadata file may be a better idea. I'll mark it as an open question.
> 
>> and entry keeping entry points in separate files should
>> minimize the number of loads when searching for entry points.  (Since
>> in general the entry points you're looking for are needles in a
>> haystack, it pays to not have to inspect every stalk of hay, but
>> instead proceed directly to the bits that are metal.  ;-) )
> 
> Keeping extensions (which will include entry points) in a separate
> file is another potentially useful idea.
> 
> Cheers,
> Nick.

And here is where I wish JSON had a link type so that this data could either be 
inlined, or a link to the externalized data could be included.

> 
> --
> Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig


-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to