BIND 10 #2219: switch to memory-efficient version of in memory data source
BIND 10 Development
do-not-reply at isc.org
Mon Sep 24 19:57:27 UTC 2012
#2219: switch to memory-efficient version of in memory data source
-------------------------------------+-------------------------------------
Reporter: | Owner: jinmei
jinmei | Status: reviewing
Type: task | Milestone:
Priority: | Sprint-20120925
medium | Resolution:
Component: data | Sensitive: 0
source | Sub-Project: DNS
Keywords: | Estimated Difficulty: 6
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
scalable inmemory |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jinmei):
Replying to [comment:11 vorner]:
> > I know it's an ugly hack, but I don't like to tweak the code further
> > within this branch. If you don't like the current version because
> > it's susceptible to future changes, I propose either:
> > - just skip this hack for now. it'll still work correctly while
initial start up time can be doubled
>
> I'd be for skipping it and creating a ticket with some proposal to clean
it up.
Okay. I've reverted the change. I'll create a separate ticket.
> > > I'm not sure about the meaning of this comment. Could you explain it
little bit more, what is happening there?
> > How about this:
> > {{{#!cpp
> > // In future we may allow adding out-of-zone names in the zone
tree.
> > // For example, to hold out-of-zone NS names so we can
establish a
> > // shortcut link to them as an optimization. If and when that
happens
> > // the origin node may not have an absolute label (consider
the zone
> > // is example.org and we add ns.noexample.org). In that case
> > // we first need to construct the absolute label sequence and
then
> > // construct the name.
> > }}}
>
> Now I understand :-). Please, include this longer comment.
Done.
> > > Also, I noticed some indentation that probably does not adhere to
any style guide I've ever seen O:-).
[...]
> > Yeah that's a kind of "non standard" exception to keep lines shorter.
> > There are already some similar cases like this though. If this looks
> > too awkward, an alternative would be:
> > {{{#!cpp
> > return (ZoneFinderResultContext(code, createTreeNodeRRset(node,
rdset,
> > rrclass,
options,
> > rename),
> > flags, node));
> > }}}
>
> Hmm, maybe the second would feel more like the rest of the code.
Done.
--
Ticket URL: <http://bind10.isc.org/ticket/2219#comment:12>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list