Skip to content

Conversation

@Keno
Copy link
Member

@Keno Keno commented Apr 19, 2019

Introduce a fast path that passes the type and the data separately
to jl_object_id_. Fixes the allocation performance problems noted
in the issue, though the Foo version is still approx 4x slower,
since the Int version doesn't have to go through a call to compute
its hash. Fixing that is future work.

emit_typeof_boxed(ctx, val),
val.isghost ? ConstantPointerNull::get(T_pint8_derived) :
ctx.builder.CreateBitCast(
decay_derived(data_pointer(ctx, val)),
Copy link
Member

Choose a reason for hiding this comment

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

Only .ispointer values have pointers (otherwise we just return garbage from data_pointer)

@Keno Keno force-pushed the kf/10208 branch 2 times, most recently from ed06060 to 3923252 Compare April 20, 2019 22:31
Introduce a fast path that passes the type and the data separately
to jl_object_id_. Fixes the allocation performance problems noted
in the issue, though the `Foo` version is still approx 4x slower,
since the Int version doesn't have to go through a call to compute
its hash. Fixing that is future work.
@Keno
Copy link
Member Author

Keno commented Apr 22, 2019

This is updated for the .ispointer case.

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