Dictionary search

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Dictionary search

Post by gepponline » Wed Mar 18, 2015 10:22 am

Is the dictionary working correctly??
I have to wait the result every time I type a single character.
So i can not type in the search box normally. I have to wait and type a character per time.

Is it a bug? Is only a windows 7 problem? Is only a problem of mine?
Is there a way to avoid this problem more than wwrite the words i want to search somewhere else and then copy and paste in the search box?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Dictionary search

Post by Klaus » Wed Mar 18, 2015 1:49 pm

Hi Geppo,

since there are currently three version "at large" (6.x, 7.x, 8 dp1) please define what version your are using.
Here on my Mac I do not see this problem in version 6.x nor 7.x!


Best

Klaus

gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Re: Dictionary search

Post by gepponline » Wed Mar 18, 2015 2:37 pm

vrsion 7.0.2-rc-1 on Windows 7.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Dictionary search

Post by Klaus » Wed Mar 18, 2015 2:41 pm

Hi Geppo,

well, we are at 7.04 RC1 in the meantime! 8)
Please bookmark this page and try again with the latest version: http://downloads.livecode.com/livecode/

Best

Klaus

gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Re: Dictionary search

Post by gepponline » Wed Mar 18, 2015 3:14 pm

updated to 7.0.3 (the stable one) and still the same..

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Dictionary search

Post by FourthWorld » Wed Mar 18, 2015 3:37 pm

I see the same behavior here, in which the token list is further filtered with each character entered in the search field. But even on my slowest machine the performance is reasonably snappy, and on my Haswell box close to instantaneous.

I would imagine a CPU capable of running Windows 7 should be more than adequate for similar performance with LC's Dictionary.

Is your system under high load from other processes, or background tasks (timers) in the LC process?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Re: Dictionary search

Post by gepponline » Wed Mar 18, 2015 3:45 pm

I don't think this could be a problem of my CPU.
I have a DELL laptop 64bit with intel i5 (used at 20%) and 4 Gb of RAM (2,71 used at the moment)

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Dictionary search

Post by morrell » Thu Mar 19, 2015 9:44 am

My LC Community 7.0.1 Dictionary running on a six year old Windows 7 (64 bit) PC is instant.

Ruth

gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Re: Dictionary search

Post by gepponline » Thu Mar 19, 2015 10:06 am

Could there be a setting somewhere that set the search behaviour?
On my Ubuntu machine it works correctly..

Sean O'Connor
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 21
Joined: Sat Mar 16, 2013 7:06 pm

Re: Dictionary search

Post by Sean O'Connor » Sat Apr 04, 2015 5:08 pm

@gepponline am using livecode 7.0.3 dictionary search is very responsive, running ..wait for it......Windows vista on a laptop.

could be that the RAM is full and so takes a long time to respond.. check to see if you have any memory ( as opposed to cpu ) intensive programs sitting idle in, say the windows taskbar at the bottom of your screen. you might need to stop a few of them, if that doesnt work then uninstalling a few programs might also do the trick.
when the going gets tough the tough get going.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Dictionary search

Post by Simon » Sat Apr 04, 2015 7:43 pm

Well one thing that happens is that when you open the dictionary it connects to livecode.com. Not sure why it needs to.
It responds very quickly if you have your internet connection turned off.
I figure it's one of those QC things where liveCode tracks what people search on.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Dictionary search

Post by FourthWorld » Sat Apr 04, 2015 8:09 pm

Simon wrote:Well one thing that happens is that when you open the dictionary it connects to livecode.com.
If it does it's not using libURL - I just tried with while monitoring libURL and the Dictionary generates no URL requests through it.

Where are you seeing this connection?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Dictionary search

Post by Simon » Sat Apr 04, 2015 8:15 pm

I had Fiddler up (http://www.telerik.com/fiddler) once when I ran the dictionary and all sorts of calls where made.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Dictionary search

Post by FourthWorld » Sat Apr 04, 2015 8:22 pm

Yes, I posted too soon: it doesn't send the user's search query, only the selection from the list of LC tokens the user clicks on.

The data itself is urlEncoded, base64Encoded, and compressed. Reversing those shows what's sent.

Even though no user data is sent, given that it sometimes has a performance issue I've submitted a bug report against it, suggesting a preference to turn it off:
http://quality.runrev.com/show_bug.cgi?id=15158

Thanks for noting this.

Edit: it seems the data is sent to obtain the User Notes for the chosen entry. It's probably not tied to search at all, since the user notes would have to be updated whenever a token's info is displayed.

I've updated my report accordingly, suggesting that perhaps they may provide an opt-out for those with poor network performance.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply