From 024e8b2d73237cf2a8e7e463b9b7c72764c00458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Staffan=20Gim=C3=A5ker?= Date: Thu, 16 Feb 2012 10:02:22 +0900 Subject: Prune redundant nodes in the mtrie. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Staffan Gimåker --- src/mtrie.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mtrie.hpp') diff --git a/src/mtrie.hpp b/src/mtrie.hpp index 9018d8f..45426ae 100644 --- a/src/mtrie.hpp +++ b/src/mtrie.hpp @@ -1,5 +1,6 @@ /* Copyright (c) 2011-2012 250bpm s.r.o. + Copyright (c) 2011-2012 Spotify AB Copyright (c) 2011 Other contributors as noted in the AUTHORS file This file is part of Crossroads project. @@ -69,12 +70,14 @@ namespace xs void *arg_); bool rm_helper (unsigned char *prefix_, size_t size_, xs::pipe_t *pipe_); + bool is_redundant () const; typedef std::set pipes_t; pipes_t pipes; unsigned char min; unsigned short count; + unsigned short live_nodes; union { class mtrie_t *node; class mtrie_t **table; -- cgit v1.2.3