Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i have it store intellisense data, so it doesnt get rerun on every program start #466

Closed
felixfbecker opened this issue Aug 22, 2017 · 7 comments

Comments

@felixfbecker
Copy link
Owner

From @OliverLeitner on August 22, 2017 6:18

as the title says...

i would like to reduce the system i/o load by have it not rescan stuff it already scanned.

is that possible?

Copied from original issue: felixfbecker/vscode-php-intellisense#147

@felixfbecker
Copy link
Owner Author

It already saves (caches) the index, but will still reindex because the files could have changed since the last run. I would be open to a PR that implements an option for this

@duplicate-issues
Copy link

Hey @felixfbecker,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@OliverLeitner
Copy link

thanks for redirecting my request.

i wouldnt exactly call this a bug, its more of a feature request that might help with the cpu load thing mentoined at #465

ya, i noticed the caching (thanks btw. @felixfbecker , so if its already caching, one "might" make a "directory checksum" type thingy and then just compare the dirs for changes. afaik most filesystems that i know have directory changes in the "directory entry bit" (size..., date modified...).

@str
Copy link

str commented Oct 4, 2017

  • Where is the cache stored?
  • What if we do not reindex if the cache has 24h or less?
  • What if we do not reindex the full project but only the the files when open?
  • What if we renice the reindex so it doesn't block the CPUs making the IDE useless for the first 10 minutes every time we open a project?

@felixfbecker
Copy link
Owner Author

Where is the cache stored?

In the standard cache locations depending on OS. Check the FileSystemCache.php file for details.

What if we do not reindex if the cache has 24h or less?

Then the index would become out of date.

What if we do not reindex the full project but only the the files when open?

Then most IntelliSense features would not work.

What if we renice the reindex so it doesn't block the CPUs making the IDE useless for the first 10 minutes every time we open a project?

Then you would renice the whole language server. The indexing is not in a different process.

@str
Copy link

str commented Oct 4, 2017

I'll continue the discussion in gitter.

@felixfbecker
Copy link
Owner Author

Duplicate of #578

@felixfbecker felixfbecker marked this as a duplicate of #578 Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants