1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 02:20:51 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-17 14:49:07 +09:00
parent e03eb4ab95
commit 874957ffb9

13
main.cc
View File

@ -917,17 +917,14 @@ int main(int argc, char **argv) {
// Create an output file
out::buf = open_output_file(filesize);
// Initialize the output buffer.
{
MyTimer t("copy", copy_timer);
tbb::parallel_for_each(out::chunks, [&](OutputChunk *chunk) {
chunk->initialize_buf();
});
}
// Copy input sections to the output file
{
MyTimer t("copy", copy_timer);
tbb::parallel_for_each(out::chunks, [&](OutputChunk *chunk) {
chunk->initialize_buf();
});
tbb::parallel_for_each(out::chunks, [&](OutputChunk *chunk) {
chunk->copy_buf();
});