This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: fail to improve psymtab memory consumption


>> Does this require serial or random file i/o?
> 
> ... you could make fread use mmap
> in special cases, but they don't happen enough in practice to make
> fread fast enough to beat mmap. 


It may not happen enough to ``beat mmap'', it certainly happens enough 
to justify the implementation of FILE using V/M based schema.

Anyway, that isn't the objective.  The objective is to get the dwarf2 
reader clean simple and pragmatically fast.  Fast, at all cost, is like 
micro-optomizing using STREQ() macros.  If you think there should be a 
mmap implementation then abstract it out so that dwarf2 uses it rather 
than contains it.

If you think there should be MMAP, then get it added to BFD where all 
readers will benefit, not just DWARF2.

	Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]