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

Codecompletion delays fixed in rev 1826 (update: in rev 1840)

<< < (3/9) > >>

thomas:

--- Quote ---Another funny thing is the way it crashed. The "codeblocks.exe ha detectado un problema..." window is there just reporting it crashed, but I'm still able to "use" Code::Blocks.
--- End quote ---
That must be because Code::Blocks doesn't understand Spanish, so it wouldn't know ;)

Ceniza:

--- Quote from: thomas ---That must be because Code::Blocks doesn't understand Spanish, so it wouldn't know :wink:
--- End quote ---

:lol:

rickg22:
:shock: Agh I'm such a fool! I used static events declaration for a part of the parser, no wonder it crashes! I need to use dynamic event tables! :oops:

Now, regarding the memory consumption, each token takes around 1K of memory usage. By summing the count of all tokens, i get around 247000 tokens, including the codeblocks.cbp (i used 73000 tokens which is what I get for global includes enabled). So the codecompletion tokens alone (without including the extra memory for data structures we end up using 256Megs, and this is because many tokens are duplicated among projects.

I think the whole model needs to be redesigned, it's obviously not fit for so many large projects at once... :(

I need another favor guys. What's the token count *WITHOUT* local or global includes?

Michael:
Hello,

I have checked the memory consumption of C::B (rev1846) with code completion all enabled. When I open C::B project, the memory's requirement increases up to 92-93 MB. Some time later (5-10 secondes, but I do not know exactly. Just the time to re-open this topic and press button "reply") the memory consumption falls to 5-6 MB and the project is opened.

May be storing the search trees in the disk instead of the memory would decrease the memory's requirement...

Michael

[EDIT] And here some more info (from Code::Blocks Debug):


--- Quote ---Done parsing project Code::Blocks (wx2.6) (980 total parsed files, 60891 tokens in 2.394 seconds).

--- End quote ---

The parsing time seems low, but another try has given me  6.229 seconds.

And without all deselected:


--- Quote ---Done parsing project Code::Blocks (wx2.6) (542 total parsed files, 15551 tokens in 3.495 seconds).

--- End quote ---

Ceniza:
CodeBlocks.cbp for rev1833 with follow local and global includes takes 77328 KB and stays there.


--- Quote from: Code::Blocks Debug ---Done parsing project Code::Blocks (wx2.6) (982 total parsed files, 45558 tokens in 61.109 seconds).
--- End quote ---

Now without global includes it takes 51272 KB.


--- Quote from: Code::Blocks Debug ---Done parsing project Code::Blocks (wx2.6) (542 total parsed files, 15540 tokens in 1.766 seconds).
--- End quote ---

With both global and local disabled it takes 51332 KB and has the same results about parsed files and tokens found.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version