소스 검색

minor haxe.io.Path optimization - use StringTools.fastCodeAt where index is guaranteed to be valid

Dan Korostelev 8 년 전
부모
커밋
490c0052ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/haxe/io/Path.hx

+ 1 - 1
std/haxe/io/Path.hx

@@ -229,7 +229,7 @@ class Path {
 		var colon = false;
 		var slashes = false;
 		for (i in 0...tmp.length) {
-			switch (tmp.charCodeAt(i)) {
+			switch (StringTools.fastCodeAt(tmp, i)) {
 				case ":".code:
 					acc.add(":");
 					colon = true;