[Xapian-tickets] [Xapian] #712: Geospatial API thoughts
Xapian
nobody at xapian.org
Thu Oct 6 03:28:18 BST 2022
#712: Geospatial API thoughts
-------------------------+-------------------------------
Reporter: Olly Betts | Owner: Olly Betts
Type: defect | Status: new
Priority: normal | Milestone:
Component: Library API | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+-------------------------------
Comment (by Olly Betts):
From #186:
> the reason why LatLongMetric has clone() is so that
LatLongPostingSource::clone() can in turn clone the metric. Optionally
reference counting the metric would provide the same ability with less
object copying and better consistency, though this only happens once per
sub database per query run, so really isn't a hot spot.
>
> If we change that, it would make sense to change to passing a pointer
instead of a reference. The bindings would also need an updating to keep a
reference to the currently set metric.
--
Ticket URL: <https://trac.xapian.org/ticket/712#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list