Bug 205450 - [efs][ftp][performance] Typing name of New Class is slow
Summary: [efs][ftp][performance] Typing name of New Class is slow
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Javier Montalvo Orús CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2007-10-04 11:33 EDT by Kevin Doyle CLA
Modified: 2008-01-23 13:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Doyle CLA 2007-10-04 11:33:42 EDT
Typing the name of a new class in the New Java Class dialog is slow 
using ftp.  If I do this using ssh/dstore it runs very smoothly.  Looking at 
the Console log it looks like we are doing a CWD & LIST command for every 
character typed.

Steps to Reproduce:
1. Create a Java Project.
2. Remove the source folder.
3. Create a new folder linked to an ftp system.
4. Make the new folder a source folder.
5. Right click on the folder. Select New -> Class.
6. Type in the name of a class.  The name will slowly appear.

Console Log from typing the class name TestRSE:

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1
250 OK. Current directory is /public_html/school/4213/assignment1

PORT 9,26,148,193,4,5
200 PORT command successful

LIST
150 Connecting to port 8047

226-Options: -a -l 

226 6 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,6
200 PORT command successful

LIST
150 Connecting to port 8505

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,7
200 PORT command successful

LIST
150 Connecting to port 8528

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,8
200 PORT command successful

LIST
150 Connecting to port 8543

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,9
200 PORT command successful

LIST
150 Connecting to port 8561

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,10
200 PORT command successful

LIST
150 Connecting to port 8573

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,11
200 PORT command successful

LIST
150 Connecting to port 8585

226-Options: -a -l 

226 9 matches total

NOOP
200 Zzz...

CWD /public_html/school/4213/assignment1/src
250 OK. Current directory is /public_html/school/4213/assignment1/src

PORT 9,26,148,193,4,12
200 PORT command successful

LIST
150 Connecting to port 8598

226-Options: -a -l 

226 9 matches total


-----------Enter bugs above this line-----------
TM 2.0.1 Testing
installation : eclipse-SDK-3.3
RSE install  : RSE 2.0.1
java.runtime : Sun 1.5.0_11-b03
os.name:     : Windows XP, Service Pack 2
------------------------------------------------
Comment 1 Martin Oberhuber CLA 2008-01-22 16:45:43 EST
Looking at the log, there are indeed directory list queries of the same directory in quick succession.

Looking at the code in FTPService.java, we should be caching the result of a previous FTP LIST query and re-use it when the next query is the same and not too much time has passed.

Javier can you check why this caching fails?