Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 22706004: Fixed too many files being open (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index b31ef40f1c58755ec4783406f84c374de6bdc8b3..b960db74ecc4b5212e6951cdcd86cbbaa739360c 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -483,7 +483,7 @@ void _writeToFile(String text, String filename, {bool append: false}) {
if (!file.existsSync()) {
file.createSync();
}
- file.writeAsString(text, mode: append ? FileMode.APPEND : FileMode.WRITE);
+ file.writeAsStringSync(text, mode: append ? FileMode.APPEND : FileMode.WRITE);
Emily Fortuna 2013/08/08 21:07:56 did you time this on linux? does this increase the
Tate Mandel 2013/08/08 21:19:13 I ran each version several times on Linux. This v
Emily Fortuna 2013/08/08 21:58:22 Curious! Well, I'm convinced! After you submit thi
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698