bdw_nz20 11 Posted March 16, 2023 Just a general query. On opening a project and coding I get Code Insight indexing the complete project each time it is opened. There is a setting on the IDE to restart the Code Insight on project start which is fine. I have a 2G RAM disk drive which the project is configured to write the intermediate outputs to which is working fine. I'm just wondering if its possible or a good idea to get the CodeInsight to write to the RAM disk since the indexing happens all the time as well. Just wondering if people have thoughts on this or not ? Share this post Link to post
programmerdelphi2k 237 Posted March 16, 2023 (edited) did you try change to "Classic" mode? in Help say that you can create a "New" LSP setup, did you see this? in Registry, you can change some definitions, did you see this? Filing Bugs and Log Files https://docwiki.embarcadero.com/RADStudio/Sydney/en/Code_Insight_Reference Edited March 16, 2023 by programmerdelphi2k Share this post Link to post
bdw_nz20 11 Posted March 16, 2023 Thanks I have seen that in the past but not looked at that docs for a while. I'll have a play around, a test C++ project I have just been testing with a directory link for the __astcache file to the RAM disk. Working so far, I'll have to see if there is any speed improvement but at least it might be saving some disk writes. I have a fast m2 drive so it may not make a huge difference apart. Share this post Link to post
programmerdelphi2k 237 Posted March 16, 2023 (edited) did you try this: re-direct the "original" folder where LSP store its file to your RAM-drive? in MSWin10 I use "MKLink" in my "saves-original-folder ... in games", then, all files will be stored (save) in another disk/folder" mklink /d /j "c:\folder_source" "d:\my_target" // d=directory j=junction == Symbolic link Edited March 16, 2023 by programmerdelphi2k Share this post Link to post
programmerdelphi2k 237 Posted March 17, 2023 how do you did with this scenary? (command-line?) Share this post Link to post
bdw_nz20 11 Posted March 17, 2023 Not sure what the scenary refers to but the __astcache mklink was done through command prompt if thats what you mean. Share this post Link to post
programmerdelphi2k 237 Posted March 17, 2023 no, what was the "LSP" folder used in your command-line? can you show your command-line? Share this post Link to post
bdw_nz20 11 Posted March 17, 2023 mklink /D <project_path>/__astcache D:/ Run in command prompt as Admin. As mentioned this particular project is C++ related so does differ potentially to what Delphi would be generating. Share this post Link to post