You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/04/14 05:37:29 UTC

[GitHub] [royale-compiler] bd2019us opened a new issue #83: FileWriter.write() should not be intensively used in loops.

bd2019us opened a new issue #83: FileWriter.write() should not be intensively used in loops.
URL: https://github.com/apache/royale-compiler/issues/83
 
 
   In classes:
   `compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocDITAEmitter.java` and 'compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleASDocEmitter.java`, the FileWriter.write() method is intensively used in loops, which can cause frequent IO operations and greatly damage the performance. The recommended approach is wrap the FileWriter with a BufferedWriter since it can significantly reduce the number of IO operations.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services