snappy.patch 542 B

123456789101112
  1. diff -Naur snappy/snappy.cc snappy_patched/snappy.cc
  2. --- snappy/snappy.cc 2022-04-12 20:44:55.000000000 -0400
  3. +++ snappy_patched/snappy.cc 2022-04-12 20:47:05.000000000 -0400
  4. @@ -1014,7 +1014,7 @@
  5. }
  6. SNAPPY_ATTRIBUTE_ALWAYS_INLINE
  7. -size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
  8. +inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
  9. const uint8_t*& ip = *ip_p;
  10. // This section is crucial for the throughput of the decompression loop.
  11. // The latency of an iteration is fundamentally constrained by the