add compile time debug & reduce type check time

This commit is contained in:
Ivan Smolin 2018-06-26 12:37:34 +03:00
parent 27806bc9e9
commit 3a8be1bc8c
2 changed files with 12 additions and 1 deletions

View File

@ -3180,6 +3180,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-iOS";
PRODUCT_NAME = LeadKit;
SKIP_INSTALL = YES;
@ -3205,6 +3206,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-iOS";
PRODUCT_NAME = LeadKit;
SKIP_INSTALL = YES;
@ -3267,6 +3269,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info-watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-watchOS";
PRODUCT_NAME = LeadKit;
SDKROOT = watchos;
@ -3295,6 +3298,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info-watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-watchOS";
PRODUCT_NAME = LeadKit;
SDKROOT = watchos;
@ -3321,6 +3325,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info-tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-tvOS";
PRODUCT_NAME = LeadKit;
SDKROOT = appletvos;
@ -3348,6 +3353,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info-tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-tvOS";
PRODUCT_NAME = LeadKit;
SDKROOT = appletvos;
@ -3416,6 +3422,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-iOS-Extensions";
PRODUCT_NAME = LeadKit;
SKIP_INSTALL = YES;
@ -3442,6 +3449,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) -Xfrontend -warn-long-expression-type-checking=200 -Xfrontend -warn-long-function-bodies=200 -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = "ru.touchin.LeadKit-iOS-Extensions";
PRODUCT_NAME = LeadKit;
SKIP_INSTALL = YES;

View File

@ -59,7 +59,10 @@ public extension Sequence {
.map { (idx: $0.idx, results: try array[$0.range].map(transform)) }
}
.toArray()
.map { $0.sorted { $0.idx < $1.idx }.flatMap { $0.results } }
.map { array -> [R] in
array.sorted { $0.idx < $1.idx }
.flatMap { $0.results }
}
}
}