Closed
Bug 288810
Opened 21 years ago
Closed 20 years ago
File listing code should not split output into multiple tables
Categories
(Core :: Networking, enhancement)
Core
Networking
Tracking
()
RESOLVED
FIXED
People
(Reporter: bugzillaspambox, Assigned: o.flebbe)
Details
Attachments
(3 files, 1 obsolete file)
|
77.74 KB,
image/png
|
Details | |
|
1.55 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.61 KB,
patch
|
Biesinger
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Screenshot: http://www.ontheserver.de/temp/Filelist.png
In long file lists mozilla shows the files in more than 1 table. This moves the
date and the time of the last editing of the files a little around. I guess
that's made that if there is one filename in the list that is really long, that
not the whole table has a huge size.
however that doesn't look very good to me. in my opinion there are 2 ways to
solve this problem:
a) move the date and the time in the first cols
b) display all files in 1 table
I would prefer solution b because if someone names his files like "This is a
letter to my boss, i wrote it on last Saturday, er no it was Sunday, but he
didn't answer jet.doc" then there is nothing else to expect than a wide table :-/
Reproducible: Always
Added the reporter's screenshot as an attachment.
Reporter: Can you possibly whip up a reduced testcase to demonstrate this problem?
Comment 3•21 years ago
|
||
This is defined at:
http://lxr.mozilla.org/mozilla/source/netwerk/streamconv/converters/nsIndexedToHTML.cpp#464
and was done this way intentionally so that layout would be quicker for long
file lists. Table code has since improved, and it may not be necessary anymore.
Bug 85381 is where the change was made.
Bug 103523 may also be of interest, its a bug about reverting Bugzilla's
behavior with long bug lists, and it deals with this same issue.
It's a valid RFE, but it's possible that for the reasons listed in bug 85381,
that this bug will be marked WONTFIX.
Assignee: bugs → file-handling
Severity: trivial → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: aebrahim-bmo → ian
Hardware: PC → All
Summary: file lists are displaced → File listing code should not split output into multiple tables
Version: unspecified → Trunk
Updated•21 years ago
|
Assignee: file-handling → darin
Component: File Handling → Networking
QA Contact: ian → benc
| Reporter | ||
Comment 4•21 years ago
|
||
@Comment #2: What do you mean by that? Is the explaination text to long?
Comment 5•21 years ago
|
||
(In reply to comment #4)
> @Comment #2: What do you mean by that? Is the explaination text to long?
No. Very large tables don't render as quickly as multiple shorter tables. That's
why the decision was made to split the output into multiple tables.
(In reply to comment #4)
> @Comment #2: What do you mean by that? Is the explaination text to long?
No, what I was wanting is some sort of testcase that would demonstrate the
split, but since Gavin posted a link to the bug that caused this behavior to be
added in the first place and a link to the lxr that shows the code related to
this, I don't think it is necessary any longer.
| Reporter | ||
Comment 7•21 years ago
|
||
@Comment #5: we are talking about something like 5/1,000 seconds, right?
Comment 8•21 years ago
|
||
not at all. bug 85381 talks about 2 minutes to render a large directory listing,
and a comment there indicates another directory took > 5 minutes.
| Reporter | ||
Comment 9•21 years ago
|
||
"minutes"?
sorry I can't confirm that. I rendered it with the splited tables and after it
with only 1 table. both took me 5 seconds. It only got a lot faster ... about 2
seconds for rendering ... when I used the microsoft internet explorer.
so I don't see any speed benefit in using more than one table. perhaps there is
one that you can calculate. but it isn't noticeable by me.
the list consists of about 1,300 entries, so that's quite a long list.
Comment 10•21 years ago
|
||
(In reply to comment #9)
Quoting from comment #3
"Table code has since improved, and it may not be necessary anymore."
I believe it may be that it is fast enough with only one table now that it is
neglible in difference, I have yet to test it myself, since I have nothing on
which to test it.
| Assignee | ||
Comment 11•20 years ago
|
||
The code removed seems to be inserted when back in the past the Netscape 3.x
and 4.x table rendering performance was lousy.
I did a short benchmark with mozilla 1.7.11, the diffence in time between
additional table breaks cannot be seen, even for lage directories (~ 2000
Files).
The side effect is that the dir listing looks much better.
Please apply for seamonkey & firefox. Tested on seamonkey 1.7.11; firefox 1.0.6
has the same code.
Comment 12•20 years ago
|
||
Comment on attachment 193056 [details] [diff] [review]
Patch to remove the additional </table><table> tags
please patch trunk, not old branches...
and you should also remove the mRowCount variable.
Attachment #193056 -
Flags: review-
| Assignee | ||
Comment 13•20 years ago
|
||
: Forgot to include header as well.
The cvs update takes a long time.... I will update when it is ready.
Attachment #193056 -
Attachment is obsolete: true
| Assignee | ||
Comment 14•20 years ago
|
||
O.k. I see, this file is indeed changed very much since 1.7.11. Have to modify
and test it.
| Assignee | ||
Comment 15•20 years ago
|
||
Forgive me asking silly questions: What CVS Tag do I have to use to check out
"Trunk"?
I had no luck compiling the HEAD.
| Assignee | ||
Comment 16•20 years ago
|
||
Tested by me. Will submit installation problems later.
Comment 17•20 years ago
|
||
(In reply to comment #15)
> Forgive me asking silly questions: What CVS Tag do I have to use to check out
> "Trunk"?
None (i.e. HEAD)
> I had no luck compiling the HEAD.
hmm, usually HEAD should compile...
Comment 18•20 years ago
|
||
Comment on attachment 193146 [details] [diff] [review]
Patch relative to HEAD
test results:
dir with 10,000 entries, linux
without patch: ~45 sec
with patch: ~47 sec
so essentially identical behaviour.
Attachment #193146 -
Flags: superreview?(bzbarsky)
Attachment #193146 -
Flags: review+
Updated•20 years ago
|
Attachment #193146 -
Flags: superreview?(bzbarsky) → superreview+
Updated•20 years ago
|
Assignee: darin → o.flebbe
Comment 19•20 years ago
|
||
fixed on trunk; if you want this fixed on the branches (1.8, mostly (for firefox
1.5/seamonkey 1.0), please request approval on this patch.
thanks for the patch.
Checking in netwerk/streamconv/converters/nsIndexedToHTML.cpp;
/cvsroot/mozilla/netwerk/streamconv/converters/nsIndexedToHTML.cpp,v <--
nsIndexedToHTML.cpp
new revision: 1.69; previous revision: 1.68
done
Checking in netwerk/streamconv/converters/nsIndexedToHTML.h;
/cvsroot/mozilla/netwerk/streamconv/converters/nsIndexedToHTML.h,v <--
nsIndexedToHTML.h
new revision: 1.15; previous revision: 1.14
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•