Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Short-term quick patching code completion (for 1.0 / 1.1) ideas

<< < (3/4) > >>

rickg22:

--- Quote from: Biplab on June 05, 2007, 08:59:19 am ---So is it going to keep the most commonly used header files in a DB? That would be nice. Or maybe an option can be kept for users to define the most commonly used headers. :)

--- End quote ---

Actually i'm thinking it'd be like this:

a) Keep an array of *ALL* the Tokens in memory. But these only include their index and a (maybe null) pointer to the full data.
b) When data is requested from a Token, it's loaded from the DB into RAM.
c) This is the part that I'm not sure how to tackle. How to dispose unused Tokens? Maybe I'll keep a list of used files, and the ones with least requests gets released.

But I like eranif's choice. Keep a DB of the common headers. The good news is that I'm going to keep separate indexes for tokens of different files, i.e. idx = fileid + tokenid. This will allow me to separate token dbs into files or groups of files.

MortenMacFly:

--- Quote from: rickg22 on June 05, 2007, 03:53:11 pm ---But I like eranif's choice. [...]

--- End quote ---
Rick: I'm not sure if you know about eranif's effort at https://opensvn.csie.org/CodeLite.
I believe this already provides a nice framework for some of the tasks discussed here. (If you are aware of it just ignore my post... ;-)).
With regards, Morten.

rickg22:
Morten: Yes, I'm aware of it. But to be honest, I'm not very good at deciphering big chunks of code that I didn't write :(

Biplab:
I'm downloading it and I'll try to compile it. Let's see if I can decipher bits of it. :)

eranif:

--- Quote ---I'm downloading it and I'll try to compile it. Let's see if I can decipher bits of it. Smile
--- End quote ---
If you are referring to CodeLite, please note the source files at https://opensvn.csie.org/CodeLite are out of date.

I continued my project elsewhere, to download it use the following:
svn checkout http://svn.berlios.de/svnroot/repos/codelite/trunk

The CodeLite library is now part of a bigger project, LiteEditor (which was its demo application...)
If you need anyhelp deciphering it - just ask me - and I can give you a full guided tour at the library and examples for how to use it.

Eran

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version