Browse Source

neko optimization

Nicolas Cannasse 17 years ago
parent
commit
7a9a3af28d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/haxe/io/Output.hx

+ 4 - 0
std/haxe/io/Output.hx

@@ -223,7 +223,11 @@ class Output {
 	}
 
 	public function writeString( s : String ) {
+		#if neko
+		var b = untyped new Bytes(s.length,s.__s);
+		#else
 		var b = Bytes.ofString(s);
+		#end
 		writeFullBytes(b,0,b.length);
 	}