Closed Bug 164395 Opened 24 years ago Closed 14 years ago

Chimera should be doing file mapping

Categories

(Core :: XPCOM, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Brade, Unassigned)

References

()

Details

(Keywords: perf)

I woke up this morning and realized I had forgotten to file this performance issue: we should be doing file mapping Conrad--I'm not sure if you want this bug; if you're too busy, assign it back to me or someone else.
Keywords: perf
Er, file mapping for what?
It would be useful for patterns like this, of which I have seen quite a few in our code: bufferSize = aFileDesc.Available(); buffer = Alloc(bufferSize); aFileDesc.Read(buffer, bufferSize); // do something with buffer contents Free(buffer); The reason this isn't optimal is obvious but it's explained in the URL Kathy gave. Assuming NSPR has file-mapping APIs and assuming that the XP_UNIX impl works just fine on OSX, we could do that. It's just a matter of using that code wherever we read large files directly into RAM. Also, whether all supported platforms support file mapping. I'm not sure if this should be seen as a Mac-specific bug. It would have to be XP to be widely used in the code base.
Summary: file mapping → Chimera should be doing file mapping
Not exclusively (or even mainly) a Chimera problem.
Component: General → XPCOM
Product: Chimera → Browser
Version: unspecified → other
Assignee: ccarlen → nobody
QA Contact: winnie → xpcom
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.