c++ database search
i have made a database and do sequential searching of it, but i found smart device c++ is different from others since it is so slow to finish the searching. i am a beginner of it, can anyone suggest what can i do for the database searching such as using pointer or redesign of the database?
Have you considered using an embedded database engine, e.g., SQLite?
By "database" do you mean a list of data or a relational database. If it's a list you can use and ordered index structure like a binary search tree to make access faster.
Or if it's a basic array structure, a plain "binary search" [aka "midpoint search"] can be used to search quicker.
Originally Posted by Perspective
but what if my database contains chinese character which cannot be sorted and searched by binary search?
Originally Posted by laserlight
had u tried it? is it faster for searching?
actually i dun understand why smart device application is so slow for array searching even i run it in emulator on desktop, not on pda, but java or c# can be much faster.
anybody know why? thanks!