Skip to content

How to understand long docs generation #1565

Answered by lsegal
zverok asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I can see, YARD never tries to memoize anything,

That's correct. YARD doesn't do caching in the resolver lookup. Caching is hard. Caching requires sound (formally provable) invalidation stories. Unfortunately there's no sound invalidation story here.

but to the time of docs generation we know everything we have, and do not need to constantly re-lookup the things.

This part isn't true. There is no distinction between lookups occurring during parsing and during HTML generation. Lookups can (and do) occur during parsing. Every P() call (or Proxy object creation) involves a lookup if the proxy is resolved for a specific reason (e.g. registering a method on a proxy namespace-- th…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lsegal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1025 on August 26, 2024 08:27.