[Gambas-user] New sqlite3 database driver

Fabien Bodard gambas.fr at ...626...
Mon Mar 30 09:15:25 CEST 2015


There is one big difference for me ...  Now i can understand the code :-).

2015-03-30 1:30 GMT+02:00 Benoît Minisini <gambas at ...1...>:
> Hi,
>
> I have rewritten the sqlite3 database driver, so that I get rid of all
> that badly written brain-fucking C++ code.
>
> Now everything is written in C and smaller (about 3000 lines of code
> instead of 6000). Less memory should be used by big results, and so
> things should be a little bit faster. But I didn't do any benchmark.
>
> Please report if you have any bug or crash with that new driver.
>
> Note that I use it daily on my machine for my job, so I will be the
> first one impacted by any mistake!
>
> By the way, if you are looking for optimizations when reading a result
> (whatever the database you are using), don't access them by field name,
> but try to use field indexes.
>
> I.e. Result[0], Result[1]... instead of Result["field name"].
>
> Because Result["field name"] implies string comparisons with all result
> field names to find the field index.
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list