Search found 8 matches
- 23 Feb 2011 16:56
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
To test on an XP system or higher, copy the following files in the dedicated folder described in the second post of this thread ("strLen_tests_stub.txt", "strLenA_loopUnrolled.txt", "strLenJ_20101116.txt" and "strLenL_dipstick.txt" should already be present to...
- 23 Feb 2011 16:52
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
(tests' sources in the next post) (Using «,1» alleviates the need to worry about the command line limit. One less thing to think about ? No impact on speed !? I like !) Wow, astute ! 'strLenN_binarySplit' (.txt) manages to complete in a good 90% of the time taken by the yet already refined 'strLenL_...
- 16 Jan 2011 17:03
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
Ooops, apparently the word 'gauge' is a false friend ; it appears that I should have used the word 'dipstick' to convey what I had in mind ; I've corrected it in the preceding posts. (By the way, I know of no preexisting name for the technique you employed and it reminds me of when one has to gauge...
- 12 Jan 2011 18:25
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
To test on an XP system or higher, copy the following files in the dedicated folder described in the second post of this thread ("strLen_tests_stub.txt" and "strLenI_chunks.txt" should be present too). Note : the differences in the amounts of comments of each function do have a n...
- 12 Jan 2011 18:20
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
bump (tests' sources in the next post) @jeb and @amel27 : Fast ! As in : your use of a 'dipstick' completes in less than 66% of the time taken by a binary search . @DosItHelp : Compared to the version with some splitting, the 20101116 version of «:strLen» completes in less than 90% of the time for s...
- 27 Oct 2010 15:35
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
Re: strLen boosted
WSH is cool too . That said, there is some hefty overlap between what batch and WSH scripting are fit for. Obviously, when comes the time to measure the length of a string, WSH has the upper hand. There are many reasons - objective/subjective/good/bad - though, to use batch rather than WSH (even in ...
- 24 Oct 2010 16:50
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
strLen tests
To test on a system of the NT line, copy the following files in a dedicated folder. The first file is intended to be modified at will depending on what is tested. The others will/should require no tweaking. The tests of correctness produce results in {OK,FAIL}. After a comprehensive test of correctn...
- 24 Oct 2010 16:46
- Forum: DOS Batch Forum
- Topic: strLen boosted
- Replies: 26
- Views: 85022
strLen boosted
Hi ! I was wondering how to retrieve the length of a string ; I've seen «:strLen» (http://www.dostips.com/DtCodeCmdLib.php#Function.strLen) ; yay ! I've also managed to improve it, at least on this configuration : Intel Core Duo T2300 1.66GHz / Windows XPSP3 {5.1.2600}. The code is towards the end o...