소스 검색

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: