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

Add ability to inject gzip/bzip2 compressed MRT files #2815

Closed
wants to merge 3 commits into from

Conversation

vista-
Copy link
Contributor

@vista- vista- commented Jun 12, 2024

This small addition to the MRT command makes it easier to directly inject gzip and bzip2 compressed MRT files. RIPE RIS provides them in the former, RouteViews provides them in the latter format.

A quick benchmark shows that injecting a gzipped and bzip2ed MRT file (from RIPE route collector rrc18) takes almost the same time as injecting the uncompressed file:

$ time ./gobgp mrt inject global ~/latest-bview.gz

real	0m52.668s
user	0m51.392s
sys	0m5.315s

# Restart gobgpd

$ time ./gobgp mrt inject global ~/latest-bview.bz2

real	0m53.537s
user	0m48.198s
sys	0m3.960s

# Restart gobgpd

$ time ./gobgp mrt inject global ~/latest-bview

real	0m52.175s
user	0m52.177s
sys	0m8.418s

@fujita
Copy link
Member

fujita commented Jun 12, 2024

Looks like you need to update dictionary.txt

@fujita
Copy link
Member

fujita commented Jun 13, 2024

pushed, thanks!

@fujita fujita closed this Jun 13, 2024
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.

None yet

2 participants