Jump to content

Directory Enquiries Challenge


Recommended Posts

22 minutes ago, czardas said:

unofficial August 2016 AutoIt code challenge

Waiting for the September 2016 AutoIt code challenge! :D

 

Congratulations to the winners :thumbsup:.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
Share on other sites

Quote

Waiting for the September 2016 AutoIt code challenge!

I vote for a 'find duplicate files' challenge.  I need something to race against my win10 + bash + rdfind

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

It still has plenty of room for improvement, even at 1.5s

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

1,429 files in 86 folders - multiple types

I'd post the screenshot of the properties but, I cant delete my attachments and neither can the Mods and I am at 100%, maybe they will be nice and increase my cap since IPB is so boned.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

thanks @czardas and everyone who contributed to this thread, it was enjoyable! i will now cherish my digital medal and go on an offline vacation for a week, so i won't be around to witness the fallout of these:

@iamtheky,

5 hours ago, iamtheky said:

I vote for a 'find duplicate files' challenge.  I need something to race against my win10 + bash + rdfind

 

1) i believe a new thread is in order.

 

2) i recon an AutoIt challenge solution that involves calling an external executable/library to perform its core task can hardly be considered valid. the ultimate example being of course this:

3) an AutoIt solution to meet your challenge already exists. i can't tell how fast it is compared to bash command, but it is AutoIt...

 

 

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

I'm sure there will be a new thread, but its also a discussion that would then be disjointed. So 6 of 1 half dozen the other.

You should really down the SMF zip file and look how native it really is, it gets mad help from sqllite and contains the entirety of 7z which I am sure assists in compression/speed.  If the resource is available to your system for $0 and can be controlled via an AutoIt script, then get some.  Trying to dance around it for posterity will only make the end result suffer.

And in my testing, I win the race.  Though admittedly I havent done repeated attempts to ensure that the behavior once fs is cached persists.

@orbs

re-reading 2) it seems you think I want to compete.  I merely want something faster.  And if you read the specs for rdfind there are ways to improve SMF, like using first bytes

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Or Flags, and a post where you can list metrics required to take the individual flags from the various users that hold them.

A sporting thread of sorts :)

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

or a competitive subforum, with challenges having their own individual threads.  It certainly couldnt be a free for all, scopes will have to be narrowly defined.  But I like challenges so probably would've worked my through a sub like that after AutoIt-1-2-3.

Edited by iamtheky
free fall and free for all mean 2 diff things

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Just one optimization note:

Always use parameter CaseSense=1 in StringInStr() or StringReplace() when there are searched/tested/replaced non a-z,A-Z strings.

This way you can achieve BIG speed boost!

 

EDIT:

Of course also use case sensitive string comparison in IF ... THEN:

If string1 == string2 Then ...

instead of much slower NOT case sensitive one:

If string1 = string2 Then ...
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...