Skip to content

Fix some inference problems in logging#38292

Merged
timholy merged 1 commit intomasterfrom
teh/infer_logging
Nov 6, 2020
Merged

Fix some inference problems in logging#38292
timholy merged 1 commit intomasterfrom
teh/infer_logging

Conversation

@timholy
Copy link
Copy Markdown
Member

@timholy timholy commented Nov 3, 2020

Aside from the preferences system (xref #38285) and TOML parsing,
these trigger what appear to be the only remaining sources of vulnerability to
invalidation of Base.require among Julia's exported names,
which are the main names we can expect to be specialized by packages.

My main uncertainty is whether adding ::LogLevel is OK, CC @c42f.

EDIT: in case it's not clear, Base.require deserves special attention: if your goal is to slow down package loading, you could hardly do better than invalidate Base.require. Bonus points for invalidating it with multiple package dependencies, since it would need recompilation each time it gets invalidated before the next package in the sequence can load.

Aside from the preferences system (xref #38285) and TOML parsing,
these appear to trigger the only remaining sources of vulnerability to
invalidation of `Base.require` among Julia's *exported* names,
which are the main names we can expect to be specialized by packages.
@timholy timholy added the latency Latency label Nov 3, 2020
@timholy timholy requested a review from c42f November 3, 2020 11:55
@timholy
Copy link
Copy Markdown
Member Author

timholy commented Nov 6, 2020

Since tests pass, let's give it a whirl; we can always back that part out if it's trouble.

@timholy timholy merged commit 01fe6ef into master Nov 6, 2020
@timholy timholy deleted the teh/infer_logging branch November 6, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

latency Latency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant