CBL slow comparison

24 views
Skip to first unread message

Nicolas Lapomarda

unread,
Mar 31, 2014, 2:41:04 PM3/31/14
to mobile-c...@googlegroups.com
Using CBL, my console gets filled with these strings:

*** Slow comparison of 'sandrine thommen' and 'séverine vidal'

This only seems to happen for strings which contain accented characters. Is this expected behavior? The code comments seem to indicate this is a temporary workaround.

Nico

Jens Alfke

unread,
Mar 31, 2014, 2:52:01 PM3/31/14
to mobile-c...@googlegroups.com

On Mar 31, 2014, at 11:41 AM, Nicolas Lapomarda <ni...@conceited.net> wrote:

Using CBL, my console gets filled with these strings:
*** Slow comparison of 'sandrine thommen' and 'séverine vidal'

Oops — that wasn’t supposed to get checked in :( I bet it’s slowing down your view indexing too. Fortunately it’s only on master, not in a release.
I've just pushed a commit that removes it, 27c4ccd.

(I added a faster string comparison routine in the JSON collator a few weeks ago in commit 33ffa2d. The log message points out instances where the fast comparison can’t be used, because it only supports ASCII, so the collator falls back to the original NSString-based comparison.)

—Jens

Nicolas Lapomarda

unread,
Mar 31, 2014, 2:52:54 PM3/31/14
to mobile-c...@googlegroups.com
Makes sense. Thank you Jens.

Nico

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/6CDB7E17-2C22-42DF-B4E1-4C0A4F555839%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages