Skip to content

Split fromAnySchemaType into smaller chunks#429

Merged
eed3si9n merged 1 commit intoeed3si9n:masterfrom
fltt:split-long-fromanyschematype
Jul 3, 2017
Merged

Split fromAnySchemaType into smaller chunks#429
eed3si9n merged 1 commit intoeed3si9n:masterfrom
fltt:split-long-fromanyschematype

Conversation

@fltt
Copy link
Contributor

@fltt fltt commented Jul 3, 2017

With big WSDLs GenProtocol's generated fromAnySchemaType function can accumulate so many case statements to exceed JVM code size limit.
To prevent this, fromAnySchemaType is split into several helper functions (named something like fromAnySchemaTypeHelper).

I see there is a PR (#411) addressing the same issue, however:

  1. it looks to be stale for six months now
  2. I'm unsure whether it is the same issue
  3. this fix is simpler

The maximum number of case statement (200) is a supposedly safe value determined by trial and error. However YMMV.

With big WSDLs GenProtocol's generated fromAnySchemaType function can
accumulate so many case statements to exceed JVM code size limit.
To prevent this, fromAnySchemaType is split into several helper
functions (named fromAnySchemaTypeHelper<index>).
Copy link
Owner

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks for the contribution.

@eed3si9n eed3si9n merged commit b2c43c9 into eed3si9n:master Jul 3, 2017
@eed3si9n eed3si9n mentioned this pull request Jul 3, 2017
@fltt fltt deleted the split-long-fromanyschematype branch July 18, 2017 06:56
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