Преглед изворни кода

improve speed of amalgamation; flush only at the end

Julius Pfrommer пре 8 година
родитељ
комит
4ff6793aeb
1 измењених фајлова са 0 додато и 3 уклоњено
  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: