Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Editor slow or hangs

Jeff,
 
The .mod files are all made from source code that is part of the eclipse project.  I wonder if I should move them away into a different project and just link them to reduce the size of each project.
 
Is there a way to selectively index files? Or maybe the indexing should be done only when a specific refactoring is requested by the user.
 
Later yesterday, I had refactoring turned off, but a Ctrl+S to save took about 1.5 minutes (I counted!). And the CPU usage monitored on TOP jumped to 100% for the entire 1.5 minutes.  Any idea why that would be?  And there was no progress bar at this point. And similar behavior when I hit Alt+B to build the project.
 
This always seems to happen after I have worked on a project for a while. Does photran or the CDT save some history file of the project? I wonder if that file is just becoming too large? Any way we can "clean" the project, so that the project settings stay the same but other info is purged?
 
 
Anusha


 
On Fri, May 13, 2011 at 8:20 AM, <photran-request@xxxxxxxxxxx> wrote:
Send photran mailing list submissions to
       photran@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
       https://dev.eclipse.org/mailman/listinfo/photran
or, via email, send a message with subject or body 'help' to
       photran-request@xxxxxxxxxxx

You can reach the person managing the list at
       photran-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of photran digest..."


Today's Topics:

  1. Editor slow or hangs (Anusha Sekar)
  2. Plugins to photran? (James Hart)
  3. default working directory different for PTP and Photran?
     (DEVEL Michel)
  4. Re: Plugins to photran? (Jeffrey Overbey)
  5. Re: Editor slow or hangs (Jeffrey Overbey)
  6. Re: Refactoring with modules (Jeffrey Overbey)
  7. Re: Editor slow or hangs (Greg Watson)
  8. Re: Editor slow or hangs (Jeffrey Overbey)
  9. Re: Editor slow or hangs (Greg Watson)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 May 2011 14:24:27 -0700
From: Anusha Sekar <anusha.sekar@xxxxxxxxx>
To: photran@xxxxxxxxxxx
Subject: [photran] Editor slow or hangs
Message-ID: <BANLkTi=sdeTb_G_hGU9vhDATdZYYgFKnxA@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Seems like the photran editor either hangs or is extremely slow when the
analysis and refactoring are turned on. Is there any solution to this? I
have build automatically checked off.

I have tried both eclipse-galileo with photran 5.0 and eclipse-helios with
photran 6.0. I am on a 64 bit linux OS, using Java 1.6. My project is fairly
complex with about 10 modules, each with a dozen or so subroutines. Could
this be the issue?

Considering looking for alternatives to photran if I cannot get around this.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110512/6178e165/attachment.htm>

------------------------------

Message: 2
Date: Thu, 12 May 2011 18:06:46 -0400
From: James Hart <jamesahart79@xxxxxxxxx>
To: photran@xxxxxxxxxxx
Subject: [photran] Plugins to photran?
Message-ID: <BANLkTinBTNVwNCPUGcHs7NWyUGSb4mZ+-g@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Hello everybody,

In the environment I work in, it would be very useful to be able to
create plugins for Photran that can do things like export the runtime
variables to custom programs and other similar miscellaneous
improvements.  I have checked out and studied a book on making
plugins, and will clearly practice making them before going for broke,
but I was simply wondering if their were any Photran-related
difficulties or interfaces I should now about.  Especially important
are the interfaces to the variable view editor, especially how the
variable values are passed to either the Action or the Handler (this
is not clear in general from the books I have studied, and I suspect
Photran has custom behavior anyway).  If anybody has any insight or
documentation, or references to documentation, I would appreciate it
very much.

Thanks in advance,

James Hart

--
Nature hates being reified.


------------------------------

Message: 3
Date: Fri, 13 May 2011 11:54:17 +0200
From: DEVEL Michel <michel.devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: [photran] default working directory different for PTP and
       Photran?
Message-ID: <4DCCFFC9.30700@xxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Dear photran/PTP developpers,

At the moment, I am trying to use a code that uses Scalapack, hence MPI,
on my local multicore PC (eclipse 3.6 SR2 on linux x86-64).
That code needs input files.
Apparently, If I launch it as a "Local Fortran application", then the
default working directory is the main directory of the project, whereas
if I launch it as a parallel application, it is the directory where the
executable is located.
After duplicating the input files everything works in both cases.

Anyway, would it be possible to have the same behavior for both?
--

Sincerely yours,

Michel DEVEL

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110513/d731dc5b/attachment.htm>

------------------------------

Message: 4
Date: Fri, 13 May 2011 09:03:34 -0500
From: Jeffrey Overbey <overbey2@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Plugins to photran?
Message-ID: <BANLkTin90NgGWQ-RS4bVZPDSVsF5E=vXrQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Hi James,

> are the interfaces to the variable view editor, especially how the
> variable values are passed to either the Action or the Handler (this

I assume you are talking about the variables view in the debugger...?
If so, this code is not actually in Photran. It is in CDT. When you
choose "Debug as Local Fortran Application," all Photran does is
launch the debugger from CDT. The debugger in CDT is more or less a
GUI for GDB; it uses GDB/MI to communicate with GDB, and GDB provides
all of the information used to populate the variables view, etc.

> but I was simply wondering if their were any Photran-related
> difficulties or interfaces I should now about.  Especially important

Check out the "Internals" page on the Photran website, particularly
the Photran Developer's Guide and the photran-dev mailing list. If you
end up working with CDT (e.g., the debugger), you should probably join
the cdt-dev mailing list
(https://dev.eclipse.org/mailman/listinfo/cdt-dev) since the people
who work on the debugger monitor that list.

Jeff


------------------------------

Message: 5
Date: Fri, 13 May 2011 09:16:00 -0500
From: Jeffrey Overbey <overbey2@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Editor slow or hangs
Message-ID: <BANLkTi=Sv+1R4AbjjoE6UyDZX_T_97uxmg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

> Seems like the photran editor either hangs or is extremely slow when the
> analysis and refactoring are turned on. Is there any solution to this? I
> ...
> My project is fairly complex with about 10 modules, each with a dozen

That is almost certainly what is causing the slowness. You have
discovered why analysis/refactoring is turned off by default on new
projects.  :-)

There are two factors.

One is the total size of your project and the dependencies in it. If
you have a module in one file but nine other files depend on it, then
when you update that file, the Photran indexer will re-index all ten
files (check out the Progress view).

Another factor is the size of the file in the editor. When
analysis/refactoring is on, Photran occasionally has to re-analyze the
contents of the editor so that content assist, the Fortran Declaration
view, etc. will have more-or-less up-to-date information. For small
files, this probably isn't noticeable. If the file in the editor is
large (say, more than a few hundred lines), though, you'll probably
notice a delay.

Jeff


------------------------------

Message: 6
Date: Fri, 13 May 2011 09:33:20 -0500
From: Jeffrey Overbey <overbey2@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Refactoring with modules
Message-ID: <BANLkTik0dGGO1A+65WgeEm6MidCHnpM+uA@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Hi Daniel,

> about not finding a module. This is correct, as that module is provided by
> the compiler and resides somewhere different on the file system. So I wanted
> ...
> workspace, so I can't include the directory with this compiler-provided
> module. Why is that so, and should it be changed?

A couple things come to mind.

First, Photran cannot read .mod files; it has to have source code for
the module to be able to analyze it. The format of a .mod file varies
from compiler to compiler.

As for why the analysis/refactoring components work exclusively with
files in your workspace, it's mostly implementation detail. Eclipse
treats files in your workspace differently than files elsewhere on the
file system. Photran has to be notified of changes to files, it has to
schedule background updates so that they avoid concurrent
modifications, etc... and all of this is trickier with files located
outside the workspace. We've avoided doing this so far because there
didn't seem to be much demand.

Back to the first point... for the module you're talking about, what
do you have available? A .mod file? A header (.h) file? Full source
code?

Jeff


------------------------------

Message: 7
Date: Fri, 13 May 2011 10:33:44 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Editor slow or hangs
Message-ID: <181F52D1-231B-45D7-BABB-D7E13330FC53@xxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

Jeff,

I'm not sure this explains why the editor is hanging though. In CDT, I can continue to work on the project while it is re-indexing; this happens in the background. Photran should really do the same thing.

Greg

On May 13, 2011, at 10:16 AM, Jeffrey Overbey wrote:

>> Seems like the photran editor either hangs or is extremely slow when the
>> analysis and refactoring are turned on. Is there any solution to this? I
>> ...
>> My project is fairly complex with about 10 modules, each with a dozen
>
> That is almost certainly what is causing the slowness. You have
> discovered why analysis/refactoring is turned off by default on new
> projects.  :-)
>
> There are two factors.
>
> One is the total size of your project and the dependencies in it. If
> you have a module in one file but nine other files depend on it, then
> when you update that file, the Photran indexer will re-index all ten
> files (check out the Progress view).
>
> Another factor is the size of the file in the editor. When
> analysis/refactoring is on, Photran occasionally has to re-analyze the
> contents of the editor so that content assist, the Fortran Declaration
> view, etc. will have more-or-less up-to-date information. For small
> files, this probably isn't noticeable. If the file in the editor is
> large (say, more than a few hundred lines), though, you'll probably
> notice a delay.
>
> Jeff
> _______________________________________________
> photran mailing list
> photran@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran



------------------------------

Message: 8
Date: Fri, 13 May 2011 10:17:07 -0500
From: Jeffrey Overbey <overbey2@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Editor slow or hangs
Message-ID: <BANLkTikeO8cH8z-teN2FApZ0jawzDLptAg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

> I'm not sure this explains why the editor is hanging though.

Indexing does happen in the background, but I mentioned it because, on
a single-core machine, even work "in the background" is noticeable.

The problem is more likely the second thing I mentioned.  There's a
point when the indexer (in a background thread) synchronizes with the
editor (in the UI thread) -- there's also a point when the reconciler
(in a different background thread) synchronizes with the editor -- and
the UI is blocked during this synchronization.  It was really bad in
5.0, but it improved in 6.0.

Jeff


------------------------------

Message: 9
Date: Fri, 13 May 2011 11:19:51 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Editor slow or hangs
Message-ID: <C0337E66-CF86-4588-8937-3CE4C448AF34@xxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii

Can it be disabled?
Greg

On May 13, 2011, at 11:17 AM, Jeffrey Overbey wrote:

>> I'm not sure this explains why the editor is hanging though.
>
> Indexing does happen in the background, but I mentioned it because, on
> a single-core machine, even work "in the background" is noticeable.
>
> The problem is more likely the second thing I mentioned.  There's a
> point when the indexer (in a background thread) synchronizes with the
> editor (in the UI thread) -- there's also a point when the reconciler
> (in a different background thread) synchronizes with the editor -- and
> the UI is blocked during this synchronization.  It was really bad in
> 5.0, but it improved in 6.0.
>
> Jeff
> _______________________________________________
> photran mailing list
> photran@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran



------------------------------

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran


End of photran Digest, Vol 69, Issue 7
**************************************


Back to the top