Post

Replies

Boosts

Views

Activity

Reply to Disable cacheing before reading from a file using Swift
Hello, thanks for the reply. I have updated my while loop to use the following logic: var buffer = Data(count: 4 * 1024 * 1024) let fd = open(fileUrl.path, O_RDONLY) if fcntl(fd, F_NOCACHE, 1) == -1 { return } while Date.now.timeIntervalSince1970 - startTime < 5.0 { buffer.withUnsafeMutableBytes { ptr in let amount = read(fd, ptr.baseAddress, ptr.count) self.readData += UInt64(amount) self.totalReadData += UInt64(amount) } lseek(fd, 0, SEEK_SET) } close(fd) The calculated speed goes up to almost 16GB/s. I tried moving the open and close calls directly into the while loop. Although this slows down the logic (as one would expect), the speed is still roughly 8GB/s. Regards, Sascha
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’22
Reply to App Store Connect does not accept back-deploy concurrency macOS App that build by Xcode 13.2
Hello, I have the same issue with my apps. I am using async/await in a framework that is included via Swift Packages. I can build the app, but when I validate / upload the archive I get the following error: This bundle is invalid. The executable code in [Name.app/Contents/Frameworks/libswift_Concurrency.dylib, Name.app/Contents/Library/LoginItems/NameLauncher.app/Contents/Frameworks/libswift_Concurrency.dylib] contain unsupported content.
Dec ’21
Reply to MacOS 12.0.1 Monterey Bluetooth issues
Just half an hour ago, I had to restart my iMac because the mouse did not scroll anymore. I just thought that my mouse had died, but after restarting, everything worked fine. I created a ticket a couple of days ago and got a reply pretty fast. It was escalated to the Bluetooth team, but I did not anything back from them.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to Disable cacheing before reading from a file using Swift
Hello, thanks for the reply. I have updated my while loop to use the following logic: var buffer = Data(count: 4 * 1024 * 1024) let fd = open(fileUrl.path, O_RDONLY) if fcntl(fd, F_NOCACHE, 1) == -1 { return } while Date.now.timeIntervalSince1970 - startTime < 5.0 { buffer.withUnsafeMutableBytes { ptr in let amount = read(fd, ptr.baseAddress, ptr.count) self.readData += UInt64(amount) self.totalReadData += UInt64(amount) } lseek(fd, 0, SEEK_SET) } close(fd) The calculated speed goes up to almost 16GB/s. I tried moving the open and close calls directly into the while loop. Although this slows down the logic (as one would expect), the speed is still roughly 8GB/s. Regards, Sascha
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to App Store Connect does not accept back-deploy concurrency macOS App that build by Xcode 13.2
Hello, I have the same issue with my apps. I am using async/await in a framework that is included via Swift Packages. I can build the app, but when I validate / upload the archive I get the following error: This bundle is invalid. The executable code in [Name.app/Contents/Frameworks/libswift_Concurrency.dylib, Name.app/Contents/Library/LoginItems/NameLauncher.app/Contents/Frameworks/libswift_Concurrency.dylib] contain unsupported content.
Replies
Boosts
Views
Activity
Dec ’21
Reply to MacOS 12.0.1 Monterey Bluetooth issues
Just half an hour ago, I had to restart my iMac because the mouse did not scroll anymore. I just thought that my mouse had died, but after restarting, everything worked fine. I created a ticket a couple of days ago and got a reply pretty fast. It was escalated to the Bluetooth team, but I did not anything back from them.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21