Search found 333 matches

by Lost Zergling
Apr 19, 2018 21:22
Forum: Community Discussion
Topic: Differences between 32 bit and 64 bit
Replies: 16
Views: 2069

Re: Differences between 32 bit and 64 bit

I changed "Dim As uInteger uNodeCOUNT, uGarbCt, uCount, uContainerGarbCt, uContainerGivenCt" to "Dim As uLong uNodeCOUNT, uGarbCt, uCount, uContainerGarbCt, uContainerGivenCt" in my list type and it does not crash in 64 bits. An other solution to avoid crash in 64 bits is to add ...
by Lost Zergling
Apr 19, 2018 20:17
Forum: Community Discussion
Topic: Differences between 32 bit and 64 bit
Replies: 16
Views: 2069

Re: Differences between 32 bit and 64 bit

Mr Swiss wrote :"There is, from my point of view, one that is important to remember: - in Types (used as struct), don't use U/Integer, since its size isn't fixed (ptr behaviour). ..- example: BMP header, used to be UInteger, had to be changed to ULong, to work with both compilers." Well ha...
by Lost Zergling
Apr 17, 2018 20:04
Forum: Tips and Tricks
Topic: Dispatching a string
Replies: 5
Views: 697

Re: Dispatching a string

Nice tips. Thanks a lot. Tested with an uByte ok. I will test speed tomorrow. If significant, even a very small improvment , if efficient on every piece of key (out from millions) can make a significant marginal speed difference at the end. Maybe worthy. ps : move this thread where you want, no prob...
by Lost Zergling
Apr 17, 2018 17:37
Forum: Tips and Tricks
Topic: Dispatching a string
Replies: 5
Views: 697

Re: Dispatching a string

Unexpected. A little bit puritan or what ?.. Nevertheless your remark sounds thrue indeed. Well, ok then.
by Lost Zergling
Apr 17, 2018 17:06
Forum: Tips and Tricks
Topic: Dispatching a string
Replies: 5
Views: 697

Dispatching a string

Hi everybody, I have a code wich is parsing as string I want to parse in substring as fast as possible : For i=1 to Len(str_Tag) step istep Str_tmp=Mid(str_Tag,i, istep) .. Next i I tried a zstring Ptr code : Dim hlen as ubyte=3 Dim str_Tag as string= "abcdefghijklm" Dim As ZString Ptr zp1...
by Lost Zergling
Apr 16, 2018 13:59
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

@jj2007 : So sorry, there was a serious bug on version posted 13/04/2018 (I forgot a pointer) . Fixed.
by Lost Zergling
Apr 14, 2018 8:57
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

Ha, I understand then. Difficult job nevertheless because it's "2 in 1" : list functions and keywords interface are closely mixed/integrated.
by Lost Zergling
Apr 13, 2018 22:02
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

Hello jj2007 : Yes latest version is online and I updated it azap (constantly working on it, I would have prefer to post a frozen version at first take but i was late, thus I discovered small issues writing the tuto ). ArraySort() java python or php might be faster. Nevertheless, comparative tests w...
by Lost Zergling
Apr 13, 2018 18:34
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

There is the functionality and although it is related to the technique (which makes the difficulty even if it can sometimes seem obvious after shots), and there is the technique which is the counterpart: more scientific, more exact and more difficult, and the difficulty is to simplify it. To take an...
by Lost Zergling
Apr 10, 2018 20:16
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

#Include once "C:\FB64\FreeBASIC-1.05.0-win64\FreeBASIC-1.05.0-win64\LZListsEngine.bi" Declare Function Sort(MyList As List) As Byte Function Sort(MyList As List) As Byte Return 1 ' LoveZerglingsWare : I Love Zerglings End Function Dim MyList As List MyList.HashSort(1) Dim i As Integer Fo...
by Lost Zergling
Apr 10, 2018 16:25
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.996b
Replies: 93
Views: 32202

Re: LZLE List Engine with user friendly powerfull syntax

Evolution New Property "HashSort" : MyList.HashSort(1) => Every MyList.HashTag("Key") will be sorted (ascending) For sorting : Just reduce list to protected "flat" list using NodeFlat(1) in a loop, then MyList.HashSort(1) and RestoreHash in a loop will restore sorted l...
by Lost Zergling
Apr 10, 2018 10:08
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

Hello Joshy, I was quoting jj2007. Really, I don't think so as well. I did some tests on the performance of Python and I am well aware that I will not manage to match the absolute performance. Python remains 4 to 5 times more efficient in speed, the gap having a tendency to be reduced from 10 GB and...
by Lost Zergling
Apr 09, 2018 15:52
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

"Python is considered a slow language, right? But its array sorting routine beats everything else. If you have really big databases to sort, use Python." You are thrue, Python a great choice for that stuff you right, but as Python doesn't beat c, I'm shure it would be possible for FB to ge...
by Lost Zergling
Apr 09, 2018 13:10
Forum: Beginners
Topic: function Split
Replies: 27
Views: 2174

Re: function Split

In basic : Declare Function StrUbound(STR_LigneFichier As String, STR_Motif As String=";") As Integer Function StrUbound(STR_LigneFichier As String, STR_Motif As String=";") As Integer Dim t As uLongInt=0 : Dim k As uLongInt=1 : Dim Posi As uLongInt=1 While k<>0 : k=Instr(Posi,ST...
by Lost Zergling
Apr 09, 2018 11:50
Forum: General
Topic: Curious from a performance perspective
Replies: 26
Views: 1524

Re: Curious from a performance perspective

Tested Badidea's code replacing val by valint : C is 40-60% faster !! (i3 w7 32 bits) I wonder how faster are pointers in C compared to FB. Does this been precisely benchmarked ? As it is a very basic instruction in c and same in FB, I think it should be pretty same speed otherwise I may have to ret...

Go to advanced search