vitor Posted March 22 Author Share Posted March 22 9 minutes ago, gingerbeardman said: the slow part is the xattr call which is taking 0.023 seconds per app on my machine That does seem slow. On an M1 with the time command I see 0.004 seconds but if I test with something more granular I can see the true number is closer to microseconds, even for apps with quarantining. If you do which xattr in a Terminal, do you get /usr/bin/xattr or something else? Link to comment
gingerbeardman Posted March 22 Share Posted March 22 (edited) Oh, good catch. I see /opt/homebrew/bin/xattr And I have no idea why I was almost done parallelising and the run time had reduced from 23 seconds to 3.5 seconds Edited March 22 by gingerbeardman Link to comment
vitor Posted March 22 Author Share Posted March 22 Try version 2024.1, just released, which forces /usr/bin/xattr. Link to comment
gingerbeardman Posted March 22 Share Posted March 22 (edited) Thanks! rq now takes 1.5 seconds on my machine. I guess a parallelised version might be even quicker? Of course, it's not necessary at this point but perhaps would be a fun exercise to realise an approach that might be able to be applied to other workflows. Cheers Edited March 22 by gingerbeardman Link to comment
gingerbeardman Posted March 22 Share Posted March 22 Here's my parallel version, execution time is 0.58s https://gist.github.com/gingerbeardman/ff346ea8e2704c316682df4f6ea47237 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now