Lighting up Shared packages#1330
Conversation
|
FYI @pakrym @muratg @glennc - DOTNET_HOSTING_OPTIMIZATION_CACHE is going away to be replaced with Design Doc on dotnet cache |
f99f1db to
304b34c
Compare
schellap
left a comment
There was a problem hiding this comment.
Just the minor stuff above. LGTM! Hope you've tested with your recent changes to publish profile and cache command!
| probe_config_t( | ||
| const pal::string_t& probe_dir, | ||
| bool match_hash, | ||
| bool patch_roll_fwd, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| static probe_config_t cache(const pal::string_t& dir) | ||
| { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| make_clrstr_arr(input->config_keys.len, input->config_keys.arr, &init->cfg_keys); | ||
| make_clrstr_arr(input->config_values.len, input->config_values.arr, &init->cfg_values); | ||
| if (input->version_lo >= offsetof(host_interface_t, host_mode) + sizeof(input->host_mode)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| if (input->version_lo >= offsetof(host_interface_t, tfm) + sizeof(input->tfm)) | ||
| { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| { | ||
| return false; | ||
| } | ||
| append_path(&dir, _X(".dotnet")); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| return false; | ||
| } | ||
| pal::string_t dir = get_directory(dotnet_exe); | ||
| append_path(&dir, _X("packages")); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@muratg this replaces that. This is effectively a new cache that's more formally supported and achieves what the existing optimization cache did plus more, e.g. reducing need to deploy the assemblies with the app at all. |
|
I just read the spec. It looks like there will be a fixed global location for the ngen'd files (plus a "local" one.) So no way to configure the location of the global one? I wonder if we may want to specify the location still. |
|
@muratg by default it would be located next to the instance of dotnet.exe being invoked (aka the global location). On Antares, that could (should) be on the fast drive. If that's not enough, then yes it should be possible to set this location via an environment variable/cmd line arg. |
|
@muratg, paths can be chained within @ramarag, it might be better to correct the spec to include this and also change the probe order to reflect implementation. |
304b34c to
0e7aebb
Compare
0e7aebb to
f1ad708
Compare
f1ad708 to
8d29694
Compare
|
i am merging this PR for now, will followup if any new new comments become relevant |
Fix #622. Also remove hash check for loading assemblies from the package cache. This matches the 2.0 dotnet host behavior changed in dotnet#1330.
@gkhanna79 @schellap @eerhardt PTAL
This is a port of #1109