mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 02:20:51 +03:00
temporary
This commit is contained in:
parent
e03eb4ab95
commit
874957ffb9
13
main.cc
13
main.cc
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user