Skip to content
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

compress AST in memory, not just on disk #20933

Merged
merged 1 commit into from
Mar 24, 2017
Merged

compress AST in memory, not just on disk #20933

merged 1 commit into from
Mar 24, 2017

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Mar 7, 2017

sysimg size will be exactly the same, but seems to be pretty significant savings in memory and initial GC time (about 10% on each, estimated)

@ararslan
Copy link
Member

ararslan commented Mar 7, 2017

@nanosoldier runbenchmarks(ALL, vs=":master")

@@ -3916,16 +3908,27 @@ function inlineable(f::ANY, ft::ANY, e::Expr, atypes::Vector{Any}, sv::Inference
rettype = linfo.rettype
end

inferred === nothing && return invoke_NF(argexprs0, e.typ, atypes, sv,
atype_unlimited, invoke_data)
Copy link
Member

Choose a reason for hiding this comment

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

Kinda weird indentation here. atype_unlimited should probably be aligned beneath argexprs0 for consistency with the invoke_NF call a few lines down.

@ararslan
Copy link
Member

ararslan commented Mar 7, 2017

Looks like this did something weird in the inference code:

Error in testset inference:
Error During Test
  Test threw an exception of type ErrorException
  Expression: which(fpure, ()).source.pure
  type Array has no field pure

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

@vtjnash
Copy link
Member Author

vtjnash commented Mar 8, 2017

@nanosoldier runbenchmarks("dates", vs=":master")

@pabloferz
Copy link
Contributor

You missed some backticks.

@nanosoldier runbenchmarks("dates", vs=":master")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - no performance regressions were detected. A full report can be found here. cc @jrevels

@vtjnash
Copy link
Member Author

vtjnash commented Mar 8, 2017

Thanks.

OK, good. That confirms that the "dates"-"parse" benchmark was just noise (as I was seeing locally also).

@vtjnash vtjnash force-pushed the jn/compress branch 2 times, most recently from 70583c4 to 3ee9df2 Compare March 20, 2017 14:11
sysimg size will be exactly the same,
but seems to be pretty significant savings in memory and initial GC time
(about 10% on each)
@vtjnash vtjnash merged commit 285811d into master Mar 24, 2017
@vtjnash vtjnash deleted the jn/compress branch March 24, 2017 10:30

ios_putc('\0', s.s);
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed?

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.

5 participants