Re: Semantic "Sticky" in python mode
RJD <[email protected]> Thu, 26 Feb 2015 10:52:38 +0000 (UTC)
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
rjd <3246251196ryan <at> gmail.com> writes: > > rjd <3246251196ryan <at> gmail.com> writes: > 2. The cursor is in a particular location within the function, even if I > press C-n / C-p then emacs sticks every time for 1-3s. If I switch the > buffer to a different and smaller python file there is no stickyness. > Perhaps something in the background of semantic is kicking of a parsing > everytime the cursor moves? I do not know. > > Thanks > A further extension of this point. This large function I am talking about is nothing more than a function that contains a huge array: x.y = [ a.b(), c.d() # etc #etc A whole bunch of elements in this array. At the top of the function, i.e. when the cursor is near a.b() then emacs is as quick is usual. However, when I get to the end of the function and we are dealing with the last element then emacs sticks. Also, a.b() is not really that simple - of course. It is about 12 lines long for each element. So it seems as though this is happening because of a very large array and perhaps semantic is trying to traverse this huge thing. Again I do not know, but perhaps this offers some useful information. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/