Skip to content

Conversation

Loyalsoldier
Copy link
Collaborator

This PR implements a simple decoder based on LEB128 used in protobuf. It reads geo files byte by byte to reduce peak memory usage.

If the decoder fails to decode the geo file, it will fallback to the original ReadFile method to keep backward compatibility.

About protobuf encoding and decoding, read https://developers.google.com/protocol-buffers/docs/encoding

@Loyalsoldier Loyalsoldier merged commit 5eb0878 into p4gefau1t:master May 4, 2021
@Loyalsoldier Loyalsoldier deleted the feat-geodata-decoder branch May 4, 2021 07:52
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