It is currently Fri Oct 30, 2020 2:25 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: C/ieve 1.00 Beta - free release
PostPosted: Thu Jul 01, 2010 12:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Jul 14, 2006 8:53 pm
Posts: 694
Location: Malta
The C/ieve Lib is a combination of three libraries in one handy package. The project started after years of complaints mostly with srod about the difficulty in PureBasic (and other basic compilers) to create pointer related structures (like b-trees etc); and as well as the speed losses due to "easy" and "fool proof" string libraries of these languages.

There is no demerit in this of course; it is simply against the grain for somebody raised with C (not C++).
The price/purchase can be ignored in the manual; I only ask for merit where merit is due; and if you wish to make a donation, you are welcome.

C/ieve derives its name from C (as in C language) and trieves (an efficient string search mechanism)

Anyway - what are the 3 libraries?

1) String library (the usual: assign, mid, left, right, stringfield, string reverse, concat, etc)

This is to bypass the PB string library and hold string data in a seperate space and gain in speed on string operations. Any app which relies on many string operations will gain quite a boost in speed especially with unicode.

2) Hash (or Map) Lib + Index (like creating an in memory database)

PB's maps are great and fast. But there is very little control on them. Cieves hash lib uses B-trees to store data which can allow even small maps to store efficiently huge amount of data (if memory is an issue). Stats provide user with the amount of collisions which can help you change the hash algorithim better suited for the data set you have.

But thats not all, hash library has an index feature - up to 7 indexes can be added to the hash table, and data can then be retrieved via that index - not only through the hash. The indexes use AVL trees which allow for reverse traversal, and remain fast even with loads of data.

3) trieve library

Trieves allow for "near" text searches. Best is to load the example and load the supplied dict.txt to see exactly how it works if you don't happen to know trieves - though as an example its what many browsers do when they do text phrase completion. C/ieve trieves store data very efficiently.


Library support unicode and ascii, and more importantly allows both to be used at the same time

In general the string library works faster than PB in normal in Ascii some functions as much as 4 times more, and much faster in Unicode; But when using the string functions together that real speed boosts can be obtained (usually at the cost of more RAM)
What I have found is the lib works better and faster on newer processors (eg on a quad CPU AMD 2800 the speed advantage is more than an Dual AMD 2000)

http://www.en3.biz/files/cieve_v100beta.zip

There are plenty of examples and a decent manual
cheers and enjoy

Terence

_________________
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net


Last edited by kinglestat on Thu Jul 01, 2010 6:31 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Thu Jul 01, 2010 3:40 pm 
Offline
Addict
Addict

Joined: Wed Aug 24, 2005 8:39 am
Posts: 2736
Location: Southwest OH - USA
This looks very nice.

I'll save it for my next project. Thanks for sharing with us.

cheers


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Jul 02, 2010 2:50 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3551
Location: New Zealand
sounds interesting, thanks for sharing


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Jul 02, 2010 3:18 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 4327
Location: Cypress TX
Excellent work! :mrgreen:

_________________
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Apr 08, 2011 7:04 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Sep 03, 2008 9:29 am
Posts: 270
Please Re Upload zip file to other host if maybe, I've a prob whit this host 8)


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Apr 08, 2011 10:39 am 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1981
Location: Germany
@Tomi
What? I guess you just have to download it from kinglestat's private website.

_________________
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Apr 08, 2011 1:21 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1150
Location: Amphibios 9
kinglestat wrote:
http://www.en3.biz/files/cieve_v100beta.zip

works for me.

Greetings ... Kiffi

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: C/ieve 1.00 Beta - free release
PostPosted: Fri Apr 08, 2011 5:39 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Dec 24, 2007 4:15 pm
Posts: 203
Location: Iran
i test link its works for me but just with proxy, i think my ISP block link.
test it with proxy.

_________________
Sorry for my bad english.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: W4GNS and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye