Re: Does first argument indexing still work if the first argument is a string?
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 15 Sep 2006 18:42:34 GMT
On 2006-09-15, roschler <robert.oschler@xxxxxxxxx> wrote:
If I have a predicate with a ton of facts and the facts have a string
as the first argument like this example:
db('First Argument', a, b).
db('#Some Argument', a, b).
...
When I do a query such as:
?- db('First Argument', X, Y).
Will I lose the speed benefit of first argument indexing since the
first argument of db/3 is a string and not an atom?
'...' are _atoms_. "hello" is a string, which is ultimately a list of
character codes. That is not indexed in the current version.
--- Jan
.
- References:
- Prev by Date: Does first argument indexing still work if the first argument is a string?
- Next by Date: Re: SWI-Prolog : MySQL handle as global variable?
- Previous by thread: Does first argument indexing still work if the first argument is a string?
- Next by thread: SWI-Prolog : Easter egg for dolphin lovers?
- Index(es):
Relevant Pages
|