diff options
author | Bob131 | 2021-09-02 07:33:42 +1000 |
---|---|---|
committer | Arun Isaac | 2021-09-07 01:23:59 +0530 |
commit | dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420 (patch) | |
tree | 3112b07737c810a00a8e5298e48b0c88eeff346d /build-aux | |
parent | 3e74ce5db678ab36178920a7d071b408e4ea2efe (diff) | |
download | guile-xapian-dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420.tar.gz guile-xapian-dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420.tar.lz guile-xapian-dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420.zip |
xapian: Reimplement document-bytes.
The current implementation of document-bytes involves converting the
document data string into a list of characters, mapping over the
result with char->integer and passing the list of integers to
u8-list->integer. This is quite an expensive operation (relative to
what the user might expect), and may not reliably return a result if
the document data couldn't be decoded as a UTF-8 string in the first
place.
Now that we have SWIG wrappers that return bytevectors directly, we
can redefine document-bytes as an alias of Document-get-data-bytes.
* xapian/xapian.scm (document-bytes): Redefine function in terms of
Document-get-data-bytes.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
Diffstat (limited to 'build-aux')
0 files changed, 0 insertions, 0 deletions