Search found 240 matches

by Lost Zergling
Apr 17, 2018 17:37
Forum: Tips and Tricks
Topic: Dispatching a string
Replies: 5
Views: 573

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: 573

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: 1251

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: 1251

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: 1251

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: 1251

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: 1251

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.994 -
Replies: 87
Views: 10766

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: 1251

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: 1251

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: 1695

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: 1251

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...
by Lost Zergling
Apr 06, 2018 16:15
Forum: General
Topic: LZLE Documentation & Tutorial
Replies: 1
Views: 290

Re: LZLE documentation

-------------------- Advanced features -------------------- 006 : Understanding the methods to reduce a Tree indexed list ' TUTO 006 : Understanding the methods to reduce a Tree indexed list ' The NodeFlat property (MyList.NodeFlat) can be used stand alone but is designed to be used into a HashStep...
by Lost Zergling
Apr 06, 2018 16:14
Forum: General
Topic: LZLE Documentation & Tutorial
Replies: 1
Views: 290

LZLE Documentation & Tutorial

The tutorial is mainly provided as commented code You are welcome using this topic for questions about how to use or possible bugs, posting code examples and suggestions about new features LZLE can be found here : https://www.freebasic.net/forum/viewtopic.php?f=8&t=26533 What is it ? LZLE is an...
by Lost Zergling
Apr 06, 2018 15:54
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 10766

Re: LZLE List Engine with user friendly powerfull syntax

Hello, Ok, I take note of it. This mistake was not wanted. I'll move the documentation subject to a new "General topic" and I'll update the links. Topic in documentation will be outdated. I rather prefer a separate topic for project itself and documentation because for me these are differe...

Go to advanced search