Home » Developing U++ » U++ Developers corner » Assist for include files
Re: Assist for include files [message #31075 is a reply to message #31074] |
Thu, 03 February 2011 21:58 |
|
raxvan wrote on Thu, 03 February 2011 19:50 | When the include assist uses quotes ('"') the current file is taken (theide->editfile) and a search is performed. I can see that 'editfile' variable holds the entire path to the current edited file , therefore i extract the path from that and i perform a search based on that path. This will give only "local" files/folders.
| I guess it is more of a philosophical question Or matter of taste. My point of view is this: If I wan't to include something from other packages, I should include them first (so I don't forget to do it later ). Secondly, if I wan't to include something from other package, I will always use <pkg/file.h> for a simple reason that another user might have different setup of assemblies (e.g. two nest from non-neighboring directories) and then "pkg/file.h" might not make sense. From this follows that a) only local package files can be shown when '"' is pressed and b) only files from loaded packages can be suggested. Both of these cases save you scanning disk, since those files are already accessible through ide.IdeWorkspace(). So the only thing that is IMHO really needed to be looked up on disk are the system headers from include directories and those doesn't change very often, so it might be even possible to cache the list in a single file to have it ready at start and check if it is up to date later (e.g. when the application is idle). That way you wouldn't even have to worry about speed. But that is all just my opinion, if you think you will need more files suggested or something else, you are free to do it
raxvan wrote on Thu, 03 February 2011 19:50 | I can't test CoWork anywhere because i have no single core machines . CoWork is very simple to use (just Do(THISBACK(...)), and don't care how the function will run.) and i never encountered problems with this system. There will be more extensive testing later.
Using this required me to modify the current build configuration for the Ide to be multithreaded.
The "Loading..." message is there for a very short amount of time (~0.1 seconds or less) but i will keep it there in case of some existing heavy disk operations.
| You can test by instructing the process to use only single core using Task manager (there should be Set Affinity in context menu for each process on Processes tab) but if it is under 1 second it is probably OK even if it was executed in serial.
Honza
|
|
|
|
|
Assist for include files
By: raxvan on Tue, 01 February 2011 11:06
|
|
|
Re: Assist for include files
|
|
|
Re: Assist for include files
By: raxvan on Wed, 02 February 2011 11:30
|
|
|
Re: Assist for include files
|
|
|
Re: Assist for include files
By: raxvan on Wed, 02 February 2011 13:55
|
|
|
Re: Assist for include files
By: raxvan on Thu, 03 February 2011 19:06
|
|
|
Re: Assist for include files
|
|
|
Re: Assist for include files
By: raxvan on Thu, 03 February 2011 19:50
|
|
|
Re: Assist for include files
|
|
|
Re: Assist for include files
By: raxvan on Fri, 04 February 2011 09:15
|
|
|
Re: Assist for include files
|
|
|
Re: Assist for include files
By: raxvan on Fri, 04 February 2011 13:29
|
|
|
Re: Assist for include files
By: raxvan on Fri, 11 February 2011 19:09
|
|
|
Re: Assist for include files
By: raxvan on Sat, 12 February 2011 15:11
|
|
|
Re: Assist for include files
By: koldo on Sat, 12 February 2011 19:56
|
|
|
Re: Assist for include files
By: raxvan on Sat, 12 February 2011 20:31
|
|
|
Re: Assist for include files
By: raxvan on Sun, 13 February 2011 00:14
|
|
|
Re: Assist for include files
By: koldo on Sun, 13 February 2011 20:35
|
|
|
Re: Assist for include files
By: raxvan on Mon, 14 February 2011 08:06
|
|
|
Re: Assist for include files
By: koldo on Mon, 14 February 2011 11:12
|
|
|
Re: Assist for include files
By: raxvan on Mon, 14 February 2011 12:32
|
|
|
Re: Assist for include files
By: koldo on Tue, 15 February 2011 15:52
|
|
|
Re: Assist for include files
By: koldo on Tue, 15 February 2011 22:39
|
|
|
Re: Assist for include files
By: raxvan on Tue, 15 February 2011 22:44
|
|
|
Re: Assist for include files
By: mirek on Mon, 25 April 2011 17:53
|
|
|
Re: Assist for include files
By: raxvan on Wed, 27 April 2011 13:46
|
|
|
Re: Assist for include files
By: mirek on Wed, 27 April 2011 18:46
|
|
|
Re: Assist for include files
By: tojocky on Wed, 27 April 2011 21:32
|
|
|
Re: Assist for include files
By: raxvan on Wed, 27 April 2011 21:57
|
|
|
Re: Assist for include files
By: mirek on Fri, 29 April 2011 15:19
|
|
|
Re: Assist for include files
By: raxvan on Sat, 30 April 2011 10:03
|
|
|
Re: Assist for include files
By: mirek on Sat, 30 April 2011 11:29
|
|
|
Re: Assist for include files
By: raxvan on Sun, 01 May 2011 18:49
|
|
|
Re: Assist for include files
By: mirek on Sun, 01 May 2011 21:09
|
|
|
Re: Assist for include files
By: Lance on Wed, 04 May 2011 15:50
|
Goto Forum:
Current Time: Wed May 15 09:04:43 CEST 2024
Total time taken to generate the page: 0.02507 seconds
|