Jump to content

Regular Expressions


piccaso
 Share

Recommended Posts

@piccaso

used the standard _FileCountLines from the library "file.au3" before...

Short Benchmark with a 600kB Text File:

300.7 Ticks for the UDF

5.4 Ticks for the DLL

Satisfying :)

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

Link to comment
Share on other sites

  • 3 months later...

Works fine for me.

$return1 = DllCall("md5.dll", "str", "GetMD5FromFile", "str", "md5.dll")
$return2 = DllCall("md5.dll", "str", "GetMD5FromString", "str", "String Value")

$return = 'From File: ' & $return1[0] & @LF &_
          'From String: ' & $return2[0]

ClipPut($return)

From File: 0ab37566b6bd301ed477d2a59ef5dc18
From String: 4eb7d75482dd3cdda2051a7da24b00d1
Link to comment
Share on other sites

@nutster

still pissed?  o:)

<{POST_SNAPBACK}>

Never was. I was interested in your contribution and did some optimizations based on what I saw in there, but your posting never annoyed me. Way to go! :lmao:

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

I always meant to come back to say, this md5.dll, it's nice, but for some reason, files over about 2 or 300MB fail. A hash is returned, but it's not correct, and the dll finishes ahead of time (i.e. quicker than say a 150MB file).

Has anyone else noticed this?

I haven't tested the string length, kinda moved on to a different plugin... :)

-mu

Link to comment
Share on other sites

Hi, Piccaso

where are the files regex.zip and linecount.zip, I can't download it.

Lost, sorry :oops:

mabe Marc still has linecout.zip

regex.zip is useless now, nutster did a fine job :(

I always meant to come back to say, this md5.dll, it's nice, but for some reason, files over about 2 or 300MB fail. A hash is returned, but it's not correct, and the dll finishes ahead of time (i.e. quicker than say a 150MB file).

Has anyone else noticed this?

I haven't tested the string length, kinda moved on to a different plugin... :)

-mu

Its not desiged to hash such large files, you probably ran out of memory and got back the hash of an empty string (read above)

its fast and small because the hashing routine is written in asembler but its not flexible :D

unlike to other md5 solutions the complete data must be loaded into memory bevore hashing and there are probably better solutions out there (specialy for hashing large files)

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

  • 1 year later...
  • 4 weeks later...
  • 1 year later...

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...