Browse Source

improve speed of amalgamation; flush only at the end

Julius Pfrommer 8 years ago
parent
commit
4ff6793aeb
1 changed files with 0 additions and 3 deletions
  1. 0 3
      tools/amalgamate.py

+ 0 - 3
tools/amalgamate.py

@@ -68,9 +68,6 @@ for fname in args.inputs:
             guard_res = guard_re.match(line)
             if not inc_res and not guard_res:
                 file.write(line)
-                # Ensure file is written to disk.
-                file.flush()
-                os.fsync(file.fileno())
         print ("done."),
 
 if not is_c: