-
Notifications
You must be signed in to change notification settings - Fork 976
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
Save some characters #84
Labels
Comments
Great idea, i'll see about building this into patcher utility. |
Thanks @rmccu, much appreciate your contributions here! 👍 |
This was referenced Oct 15, 2018
@rmccu i was just asked about this issue by someone and this reminded me about your fix. Are you able to create a PR for it? Let me know, if not i can create one. |
Hi @afawcett. Yeah, let me make sure it still works with the latest version of the Metadata API real quick. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, thank you for posting the Metadata API along with great examples. One issue I had was dealing with the size of the class especially
MetadataService
. One way to save some space is to only keep the classes and methods that I'll use. But something additional to this is to simplify parts that are repeated often. Particularly, for each_type_info
, there is the same URL. A lot of characters can be saved by referencing a static String of the URL instead. For example:By referencing
SoapUrl
,MetadataService
went from its initial size of 787,158 characters to 670,588 characters. It was an easy fix to knock the size down by ~15%.The text was updated successfully, but these errors were encountered: