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

Removes bytecode so we can add more #730

Merged
merged 1 commit into from
Jul 21, 2018
Merged

Conversation

codefromthecrypt
Copy link
Member

This removes the auto-value dependency and related for inlining the few
cases where it was used. It also trims the class hierarchy of sampling
flags. Finally, it moves out the in-flight localEndpoint as it is
constant.

Besides fixing a few bugs, these changes reduced the size of the jar by
12KiB and scraps 2 dependencies.

du -k /Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.2/brave-5.1.2.jar /Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.3-SNAPSHOT/brave-5.1.3-SNAPSHOT.jar
116	/Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.2/brave-5.1.2.jar
128	/Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.3-SNAPSHOT/brave-5.1.3-SNAPSHOT.jar

@codefromthecrypt
Copy link
Member Author

FYI this is in support of #557 (firehose mode) which I have some work in progress on. First steps are to make room for code.

This removes the auto-value dependency and related for inlining the few
cases where it was used. It also trims the class hierarchy of sampling
flags. Finally, it moves out the in-flight localEndpoint as it is
constant.

Besides fixing a few bugs, these changes reduced the size of the jar by
12KiB and scraps 2 dependencies.

```bash
du -k /Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.2/brave-5.1.2.jar /Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.3-SNAPSHOT/brave-5.1.3-SNAPSHOT.jar
116	/Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.2/brave-5.1.2.jar
128	/Users/acole/.m2/repository/io/zipkin/brave/brave/5.1.3-SNAPSHOT/brave-5.1.3-SNAPSHOT.jar
```
public static final SamplingFlags EMPTY = new SamplingFlagsImpl(null, false);
public static final SamplingFlags SAMPLED = new SamplingFlagsImpl(true, false);
public static final SamplingFlags NOT_SAMPLED = new SamplingFlagsImpl(false, false);
public static final SamplingFlags DEBUG = new SamplingFlagsImpl(true, true);
Copy link
Member Author

Choose a reason for hiding this comment

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

intellij showed warnings about classloader deadlock by referencing a subclass ctor in a super. the changes here not only make things smaller, but also remove that possibility.

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.

1 participant