<div dir="ltr"><div>Hi Ilya<br><br></div><div>NFD puts FIB and PIT together for a reason: FIB and PIT lookups are often used together during Interest packet processing. They achieve a speed-up via NameTree::get() functions which take advantage of the shortcuts between table entries.<br><div><br>"allocate secondary nameTree and feed it to PIT" does not work 
because NameTree::get() functions are still assuming PIT and other 
tables are on the same NameTree. You'll need to change that function to 
always use name-based lookups and not use the shortcuts.<br></div><div><br></div></div><div>During 4th NDN hackathon, my project was an initial implementation of Interest digest in NFD. <a href="https://github.com/4th-ndn-hackathon/Initial-Implementation-of-Interest-Digest-in-NFD">https://github.com/4th-ndn-hackathon/Initial-Implementation-of-Interest-Digest-in-NFD</a><br></div><div>In this project, the PIT is switched to a digest index and is thus taken off the NameTree. You may get some ideas on how much work is needed to separate PIT and FIB.<br><br></div>Yours, Junxiao<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 10:25 PM, Ilya Moiseenko <span dir="ltr"><<a href="mailto:iliamo@mailbox.org" target="_blank">iliamo@mailbox.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi NFD developers,<br>
I insert 10K to 1M FIB entries in NFD for some performance tests related to FIB lookup speed. As a result PIT lookups become proportionally slower to the FIB size, which prevents me from getting correct results. I noticed that PIT and FIB physically share the same data structure - NameTree, and tried to allocate secondary nameTree and feed it to PIT. Unfortunately, it seems that there is an additional interplay between PIT, FIB, StrategyChoice, Measurements which results in NFD termination once I pass Interest/Data through it.<br>
<br>
Does anyone have an idea how to disintegrate PIT and FIB ? I don’t really need Measurement and StrategyChoice in working condition.<br>
<br>
Thanks<br>
Ilya<br></blockquote></div></div></div></div></div>