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

Investigate message format optimisation #757

Open
masih opened this issue Nov 27, 2024 · 2 comments
Open

Investigate message format optimisation #757

masih opened this issue Nov 27, 2024 · 2 comments

Comments

@masih
Copy link
Member

masih commented Nov 27, 2024

The message format optimisation currently has a number of low hanging fruits:

Of the ones above, compression seems to be the most straightforward one to try.

@masih
Copy link
Member Author

masih commented Dec 11, 2024

Based on 10k message samples collected from filecoin/46 network, it looks like zstd compressed messages are on average 60% smaller. (min/max compression message reduction: 7.4% and 69%).

Compressing messages is therefore worthwhile indeed.

masih added a commit that referenced this issue Dec 11, 2024
Modify observer to report space gain by compressing GPBFT messages using
zstd.

Add a compression test that measures space gain in compressing generated
finality certificates.

The results run on `filecoin/46` passive testing show that compressing
GPBFT messages gain ~60% in space saving.

The latest captured so far:

```
messages observed so far: 37648
Min compression gain: 7.4 %
Max compression gain: 69.0 %
Avg compression gain: 57.3 %
```

Relates to: #757
@masih
Copy link
Member Author

masih commented Dec 12, 2024

Also see: #792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants