[Xapian-tickets] [Xapian] #523: Migrate from XS Search::Xapian to SWIG version

Xapian nobody at xapian.org
Tue Apr 7 06:43:57 BST 2020


#523: Migrate from XS Search::Xapian to SWIG version
----------------------------+-------------------------------
 Reporter:  Olly Betts      |             Owner:  Olly Betts
     Type:  defect          |            Status:  new
 Priority:  normal          |         Milestone:  1.4.6
Component:  Search::Xapian  |           Version:  git master
 Severity:  normal          |        Resolution:
 Keywords:                  |        Blocked By:
 Blocking:                  |  Operating System:  All
----------------------------+-------------------------------
Comment (by Olly Betts):

 I debugged what happens when stringify overloads are added back in.

 The problem is that SWIG internally adds objects to a hash using the
 object as the hash key.  Perl stringifies the hash key to get a string to
 hash, and that doesn't work out well if the stringify overloads aren't a
 unique identifier for the C++ object (which the `Search::Xapian` overloads
 aren't).

 It'd be better if SWIG didn't rely on stringifying objects like this, but
 I'm not sure the `Search::Xapian` stringify overloads are a good idea
 either.
-- 
Ticket URL: <https://trac.xapian.org/ticket/523#comment:16>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list