Reduce the number of system calls. Use readv instead of pread. Do

better handling of cached views.
This commit is contained in:
Ian Lance Taylor
2008-01-02 23:48:49 +00:00
parent 2745d86e69
commit cb29561284
12 changed files with 404 additions and 120 deletions

View File

@@ -335,7 +335,7 @@ Sized_dynobj<size, big_endian>::do_read_symbols(Read_symbols_data* sd)
sd->symbol_names = this->get_lasting_view(strtabshdr.get_sh_offset(),
strtabshdr.get_sh_size(),
true);
false);
sd->symbol_names_size =
convert_to_section_size_type(strtabshdr.get_sh_size());
@@ -667,6 +667,10 @@ Sized_dynobj<size, big_endian>::do_add_symbols(Symbol_table* symtab,
delete sd->verneed;
sd->verneed = NULL;
}
// This is normally the last time we will read any data from this
// file.
this->clear_view_cache_marks();
}
// Given a vector of hash codes, compute the number of hash buckets to