Skip to content

Encode large quotes #3819

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 2 commits into from
Jan 13, 2018
Merged

Conversation

nicolasstucki
Copy link
Contributor

Based on #3685

@odersky
Copy link
Contributor

odersky commented Jan 13, 2018

Needs a rebase

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@@ -8,7 +8,7 @@ object Unpickler {
/** Representation of pickled trees. For now it's String, but it
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment is wrong

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd probably make it a List[String] instead. SeqLiterals are expensive but :: is cheap. So single string quotes could be represented as quoted :: Nil

Overcome the limitations of maximum String byte length
of 65535.
@nicolasstucki nicolasstucki merged commit c307705 into scala:master Jan 13, 2018
@allanrenucci allanrenucci deleted the encode-large-quotes branch January 14, 2018 10:04
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.

2 participants