diff options
author | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-06-07 18:14:44 +0300 |
---|---|---|
committer | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-06-07 18:14:44 +0300 |
commit | 0fca36fd596e49395141561bc42c168a240f51b8 (patch) | |
tree | 7c47ac793a7937015e4fb3c557ecbb3de5940456 /libnetdata/inlined.h | |
parent | d6f3937b4d4bffedb8a8cc61f80affde7f17b180 (diff) |
Revert "New URL parser (#6070)"
This reverts commit 58b7d95a7ec9c576f8a06bbab07f755846b5349a.
---
As agreed with @thiago and @cakrit we revert URL parser changes,
to buy the time on a more detailed investigation
---
Diffstat (limited to 'libnetdata/inlined.h')
-rw-r--r-- | libnetdata/inlined.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libnetdata/inlined.h b/libnetdata/inlined.h index a9c3e472e4..6a5994c12a 100644 --- a/libnetdata/inlined.h +++ b/libnetdata/inlined.h @@ -31,19 +31,6 @@ static inline uint32_t simple_hash(const char *name) { return hval; } -static inline uint32_t simple_nhash(const char *name,size_t len) { - unsigned char *s = (unsigned char *) name; - size_t i; - uint32_t hval = 0x811c9dc5; - i = 0; - do { - hval *= 16777619; - hval ^= (uint32_t) *s++; - } while (++i < len); - - return hval; -} - static inline uint32_t simple_uhash(const char *name) { unsigned char *s = (unsigned char *) name; uint32_t hval = 0x811c9dc5, c; @@ -55,21 +42,6 @@ static inline uint32_t simple_uhash(const char *name) { return hval; } -static inline uint32_t simple_nuhash(const char *name,size_t len) { - unsigned char *s = (unsigned char *) name; - size_t i; - uint32_t hval = 0x811c9dc5, c; - - i = 0; - do { - c = *s++; - if (unlikely(c >= 'A' && c <= 'Z')) c += 'a' - 'A'; - hval *= 16777619; - hval ^= c; - } while ( ++i < len); - return hval; -} - static inline int simple_hash_strcmp(const char *name, const char *b, uint32_t *hash) { unsigned char *s = (unsigned char *) name; uint32_t hval = 0x811c9dc5; |