Skip to content

WIP: Marshal Script-based ToString to PS Execution Pipeline for Performance #1688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

JustinGrote
Copy link
Collaborator

@JustinGrote JustinGrote commented Jan 30, 2022

ExecutionOptions.Default,
(_) =>
{
var existingRunspace = Runspace.DefaultRunspace;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just curious why you need to save, change, and then reset the runspace?

Copy link
Collaborator Author

@JustinGrote JustinGrote Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SeeminglyScience can comment but I think it's just a safety/idempotency thing, in all likelihood it's the same runspace so this effectively doesn't do anything.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, if that's something we need to do perhaps we should do it in a wrapper? Like, where/when else might we have to do something like that?

And if we're not sure that we have to do it, I'd rather leave a TODO for now so if we encounter a bug we fix it later.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that was a troubleshooting step that didn't do anything right? If so that can be removed for sure.

@andyleejordan
Copy link
Member

@JustinGrote was this something you're still working on?

@JustinGrote
Copy link
Collaborator Author

I haven't been able to find the issue so at the moment, no :)

@JustinGrote
Copy link
Collaborator Author

@andschwa I think I may abandon this PR in favor of the lazy variable inititialization if it is a scriptproperty like Typescript does it, seems like the better way to go.

@andyleejordan
Copy link
Member

Hey, sounds good, I think that's the way to go too.

@andyleejordan
Copy link
Member

Going to close this out as I did practically the same thing in #1975.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants