Skip to content

Pickle quotes directly as expressions in TASTY #4538

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

Merged
merged 1 commit into from
May 17, 2018

Conversation

nicolasstucki
Copy link
Contributor

  • We avoid having to do owner changes after unpickling
  • The pickled code is slightly smaller

Replaces #4242

* We avoid having to do owner changes after unpickling
* The pickled code is slightly smaller
@nicolasstucki
Copy link
Contributor Author

test performance with #quotes please

@dottybot
Copy link
Member

performance test scheduled: 1 job(s) in queue, 0 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/4538/ to see the changes.

Benchmarks is based on merging with master (df00a67)

@nicolasstucki
Copy link
Contributor Author

And performance improvements all around :)

1 similar comment
@nicolasstucki
Copy link
Contributor Author

And performance improvements all around :)

ownerTree = new OwnerTree(NoAddr, 0, rdr.fork, reader.endAddr)
rdr.indexStats(reader.endAddr)
}

def unpickleExpr()(implicit ctx: Context): Tree = {
Copy link
Member

Choose a reason for hiding this comment

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

Document what this method does, how it differs from unpickle(), when it is used

@smarter
Copy link
Member

smarter commented May 17, 2018

I wonder if we could always unpickle as an expression and get rid of the other way to unpickle.

@nicolasstucki
Copy link
Contributor Author

Do you mean get rid of enterTopLevel?

@nicolasstucki
Copy link
Contributor Author

I will merge the two unpicking ways in another PR

@nicolasstucki nicolasstucki merged commit 297e9fc into scala:master May 17, 2018
@Blaisorblade Blaisorblade deleted the quote-pickle-expr-only branch May 17, 2018 20:20
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