Closed
Bug 9619
Opened 25 years ago
Closed 25 years ago
sched: Linux clipboard Streams for large data sets
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: trudelle, Assigned: pavlov)
References
Details
(Whiteboard: i am pretty sure this works. waiting for a test case to verify.)
Linux clipboard Streams for large data sets (test & verify) 0.5d pavlov
0%
Reporter | ||
Updated•25 years ago
|
Assignee: trudelle → pavlov
Reporter | ||
Comment 1•25 years ago
|
||
assigning to pavlov
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M9
Assignee | ||
Comment 2•25 years ago
|
||
adding pinkerton so he can tell me what i'm supposed to do
Comment 3•25 years ago
|
||
/me is confused and summarily unhelpful here.
Assignee | ||
Comment 4•25 years ago
|
||
Rod? Do you know what the stream part of this is?
GTK magically handles large data by using the standard X incr protocol with
selection.. i'm not really sure how this works, but it is handled for us, so I
don't have to worry with it.
Comment 5•25 years ago
|
||
I would assume that the streams part regards using an nsIStream interface
instead of an nsString for large data sets, so that the whole thing doesn't have
to be read into memory (streaming inside the X server won't help this if you're
streaming it all into one big nsString).
But I don't actually see any stream-based interfaces in nsIClipboard or
nsITransferable, so maybe this actually means something else.
Comment 6•25 years ago
|
||
It wasn't that we were going to stream it in so it wouldn't have to be in
memory, at least that wasn't where we thought we needed to go. We just didn't
want to keep large pieces of clipboard data in memory for long periods of time.
Like someone doing a large copy and then doing nothing with for quite a while. I
have implemented in XP code in the transferable. It still needs to be tested on
the Mac and UNIX.
Assignee | ||
Comment 7•25 years ago
|
||
does anyone have large data i can test with?
Assignee | ||
Updated•25 years ago
|
Whiteboard: i am pretty sure this works. waiting for a test case to verify.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•25 years ago
|
||
rods said:
> Go into nsTransferable.cpp at the top are these lines:
>
> // million bytes
> #define LARGE_DATASET_SIZE 1000000
> //#define LARGE_DATASET_SIZE 10
>
> Comment out the larger one and uncomment out the other one, this will force
> virtually all clipboard operations to be cached to disk. Then try a simple
> copy/paste.
so i do this, and it works. so i'm marking this fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•