Search found 1179 matches

by jj2007
Aug 18, 2019 22:58
Forum: Community Discussion
Topic: New array features
Replies: 122
Views: 6470

Re: New array features

*** compiling TmpFb.bas with -w all -asm att -Wc -O3 -s console *** C:\Juergen\FB64\inc\array.bi(715) error 1: Argument count mismatch, found ')' in 'function = fb_ArraySort( byval ap, byval sa, byval t, byval cp, byval ai.p, byval ai.li, byval n)' C:\Juergen\FB64\inc\array.bi(1844) error 58: Type ...
by jj2007
Aug 18, 2019 8:14
Forum: Community Discussion
Topic: New array features
Replies: 122
Views: 6470

Re: New array features

jj2007 just pulled out, a shoe full of mud, in another thread and reacts, as expected, with a deeply hurt, overinflated ego, like a petulant child Damn, sometimes I desperately miss the icons here! Thanks anyways, you made my day :lol: :lol: Btw when was the last time that you gave us useful code? ...
by jj2007
Aug 18, 2019 8:03
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

i've actually been working on an in-place merge for about a week. seems my brain wants me to solve this one. My version took a bit longer, actually; and yesterday I threw out the call to StringsDiffer() and implemented Juergen's table solution instead (see Aug 06, 2019 9:30). Much faster for the ca...
by jj2007
Aug 17, 2019 22:43
Forum: Community Discussion
Topic: New array features
Replies: 122
Views: 6470

Re: New array features

1 - JK IS attempting to add new features 2 - it is his desire; he is making the effort and not doing it in secret and is inviting the community to help 3 - he has been sensitive to advice and criticism from others - trying to follow any rules suggested to him You should all be applauding him. I can...
by jj2007
Aug 17, 2019 20:06
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

Well, JK has code that answers the OP's question. Looks very relevant. What do you offer, other than your "32-bit is obsolete" bla bla?
by jj2007
Aug 17, 2019 17:46
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

I am fine-tuning my mergesort, now down to 0.6 seconds on a Core i5 ;-)
by jj2007
Aug 17, 2019 14:50
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

MrSwiss wrote:FBC 64 should be "top priority"
Yes, for everybody who regularly needs to allocate more than 2GB of memory.
by jj2007
Aug 17, 2019 13:13
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

4.) You cannot just compile from fbc_34.exe or fbc_64.exe! You must run fbc.exe in it´s regular environment. That is you must first rename fbc.exe, fbrt0.o, libfb.a and libfbmt.a or backup them, where they are located on your machine. Then you must copy fbc_32.exe to fbc.exe, where your original fb...
by jj2007
Aug 17, 2019 10:14
Forum: Community Discussion
Topic: New array features
Replies: 122
Views: 6470

Re: New array features

gcc version 8.1.0 (2018) Juergen\fbc-array\new\ustring.bi(53) error 28: Expected pointer in 'TYPE DWSTR extends wstring' Juergen\fbc-array\new\array.bi(487) error 41: Variable not declared, fb_ArrayCalcPos in 'i = fb_ArrayCalcPos(byval p, byval pptr)' Juergen\fbc-array\new\array.bi(511) error 9: Ex...
by jj2007
Aug 16, 2019 14:55
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

I found a pointer method for quicksort and adapted it accordingly. Now less than .8 seconds for a million. For case-insensitive strings, that is pretty fast indeed! I have downloaded jK's work and I am trying the binaries, but unfortunately I am encountering snags (cannot find .bi files) Same probl...
by jj2007
Aug 15, 2019 13:44
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

Juergen, it's difficult to compare them. As explained above, QSort() is a stable mergesort, not a quicksort (despite of the name). But I agree that C compilers have improved a lot, sometimes there is no difference at all between C and assembly. Still, we normally beat the CRT ;-) jj2007 Your .exe we...
by jj2007
Aug 15, 2019 12:38
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

0.636 seconds is impressive, compliments! To see my results properly, it is maybe necessary to enlarge the console window; and they should be in code tags, too. In any case, I can't get near your time. The first run is around 1.8 seconds, the second one 0.8 - and that one is biased because the array...
by jj2007
Aug 15, 2019 0:12
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

For the fans of benchmarking sort algos, I put some test files here . The archive is 84MB and contains one exe plus source code using QSort() , plus three text files RandSheet*.tab with 10,000, 100k and 1M lines of random text. The text files are in tab-delimited format and contain several columns. ...
by jj2007
Aug 12, 2019 9:59
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

I took the liberty to "optimise" dodicat's code of Aug 11, 2019 15:31 (three posts above) by adding a switch that loads the string array from disk. The creation part is very slow, therefore it is convenient to create it once, then recall it from disk to speed up the testing: #include "...
by jj2007
Aug 11, 2019 2:18
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 82
Views: 2607

Re: StringArray Sort (case independent)

@dodicat, i fixed the error i had i my sorting algo in the meantime. Our results are the same now (case independent). My laptop is not the fastest, i get 0.9 seconds here (i got 0.6 at home) for one million strings using basically your code with my sort. I still see room for optimization .. Not muc...

Go to advanced search