Explorar o código

neko optimization

Nicolas Cannasse %!s(int64=17) %!d(string=hai) anos
pai
achega
7a9a3af28d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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);
 	}